graphql-boilerplates/node-graphql-server

Missing Post in schema.graphql - advanced

ramsaylanier opened this issue · 1 comments

I get the following error when running yarn start after a fresh setup of the advanced boilerplate:

ALT8AG8WL:server rlanier$ yarn start
yarn run v1.3.2
warning package.json: No license field
$ nodemon -e js,graphql -x node -r dotenv/config src/index.js
[nodemon] 1.14.11
[nodemon] to restart at any time, enter `rs`
[nodemon] watching: *.*
[nodemon] starting `node -r dotenv/config src/index.js`
/Users/rlanier/Projects/Reruled/server/node_modules/graphql-yoga/node_modules/graphql-tools/dist/schemaGenerator.js:294
                throw new SchemaError(typeName + "." + fieldName + " defined in resolvers, but not in schema");
                ^

Error: Query.post defined in resolvers, but not in schema
[nodemon] app crashed - waiting for file changes before starting...

It appears there is no post in the Query type defined in schema.graphql. I can submit a PR if need be.

Hey @ramsaylanier, thanks for catching that! 🙂
I added the post query, let me know if you find anything else that's missing. I refactored the boilerplates today.