-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Closed
Description
Following up from #326 (comment) often times it does make sense that the contextValue
is an object. This is because in addition to an authToken, you might have another token (resetPasswordToken
, verifyEmailToken
, etc) or even something like a socket
for subscriptions. However, if you don't need any of those things, it's still nice to call graphql(Schema, query)
instead of graphql(Schema, query, null, {})
. To keep it that way, execute
should default the value to an object here: https://github.com/graphql/graphql-js/blob/master/src/execution/execute.js#L115
Thoughts?
Metadata
Metadata
Assignees
Labels
No labels