Prevent console error with Mongoose, node and graphql Prevent console error with Mongoose, node and graphql mongoose mongoose

Prevent console error with Mongoose, node and graphql


According to: http://dev.apollodata.com/tools/graphql-server/setup.html

in server

app.use('/graphql', bodyParser.json(), graphqlExpress({ schema: myschema, debug: false }));

debug false did the trick.

Now. I'm check the packages for better error handling

Thanks


check out apollo-errors:

https://github.com/thebigredgeek/apollo-errors

and apollo-resolvers:

https://github.com/thebigredgeek/apollo-resolvers

These packages, together, were made to handle issues like the one you describe