mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-16 23:40:32 +00:00
rename schema definition
This commit is contained in:
@@ -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"]
|
||||
|
||||
@@ -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<ServerContext>({
|
||||
|
||||
Reference in New Issue
Block a user