Express-graphql: What exactly is "rootValue?"

Created on 4 Jul 2017  路  3Comments  路  Source: graphql/express-graphql

So I've tried to decipher exactly what rootValue does, and I've looked in the graphql docs to see if it's even referenced anywhere. I couldn't seem to find anything so I'm sure I'm missing something.

I would like to suggest that the rootValue explanation be linked or detailed a little more than what it already is to make it less confusing.

I would also appreciate it if someone could explain it to me here :)

Most helpful comment

If you're learning GraphQL and are still confused, just know you aren't alone. :P

All 3 comments

@KieronWiltshire - I think this link to graphql-js/src/execute.js should help! I'm updating the README to point to that file instead of graphql-js. Thanks for the suggestion!

Thanks man!

If you're learning GraphQL and are still confused, just know you aren't alone. :P

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kaareal picture kaareal  路  3Comments

brunolemos picture brunolemos  路  5Comments

langpavel picture langpavel  路  5Comments

mkermani144 picture mkermani144  路  5Comments

justinmchase picture justinmchase  路  4Comments