Saturday, 3 June 2017

Context vs RootValue in Apollo GraphQL

In graphQLOptions, what is the difference between context and rootvalue?

When should I use one, and when should I use the other?

At the moment I'm attaching connectors and other sensitive data to the context, is this safe? Can the user read the context or the rootvalue of his queries?



via Mascarpone

No comments:

Post a Comment