diff --git a/codegen.ts b/codegen.ts index 2d19a94..182488c 100644 --- a/codegen.ts +++ b/codegen.ts @@ -3,7 +3,7 @@ import type { CodegenConfig } from '@graphql-codegen/cli'; const config: CodegenConfig = { overwrite: true, - schema: "./schema.graphql", + schema: "./schema.graphqls", generates: { "src/generated/graphql.ts": { plugins: ["typescript", "typescript-resolvers"] diff --git a/schema.graphql b/schema.graphqls similarity index 100% rename from schema.graphql rename to schema.graphqls diff --git a/src/index.ts b/src/index.ts index f6fe1aa..21077cf 100644 --- a/src/index.ts +++ b/src/index.ts @@ -7,7 +7,7 @@ import { ServerContext } from "./serverContext"; import { UnoptimizedInMemoryRepository } from "./unoptimizedInMemoryRepository"; import { RepositoryDataLoader } from "./repositoryDataLoader"; -const typeDefs = readFileSync("./schema.graphql", "utf8"); +const typeDefs = readFileSync("./schema.graphqls", "utf8"); async function main() { const server = new ApolloServer({