Open
Description
Following along with the first lesson and getting the following error.
Successfully compiled 16 files with Babel.
$ node dist/index.js
(node:87765) UnhandledPromiseRejectionWarning: Error: Type "Query" was defined more than once.
at Object.buildASTSchema (/Users/iangoodrich/dev/experimental/intro-to-graphql/node_modules/graphql/utilities/buildASTSchema.js:84:15)
at Object.buildSchemaFromTypeDefinitions (/Users/iangoodrich/dev/experimental/intro-to-graphql/node_modules/graphql-tools/dist/generate/buildSchemaFromTypeDefinitions.js:23:28)
at Object.makeExecutableSchema (/Users/iangoodrich/dev/experimental/intro-to-graphql/node_modules/graphql-tools/dist/makeExecutableSchema.js:26:29)
at new ApolloServerBase (/Users/iangoodrich/dev/experimental/intro-to-graphql/node_modules/apollo-server-core/dist/ApolloServer.js:150:43)
at new ApolloServer (/Users/iangoodrich/dev/experimental/intro-to-graphql/node_modules/apollo-server-express/dist/ApolloServer.js:44:1)
at new ApolloServer (/Users/iangoodrich/dev/experimental/intro-to-graphql/node_modules/apollo-server/dist/index.js:23:9)
at start (/Users/iangoodrich/dev/experimental/intro-to-graphql/dist/server.js:47:18)
(node:87765) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:87765) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Metadata
Assignees
Labels
No labels