What difference between GraphQLContext and DataFetchingEnvironment? #1137
-
Docs say "GraphQL context based on the incoming request and make it available during execution", while DataFetchingEnvironment "This argument will be automatically populated and injected during the query execution but will not be included in the schema definition". |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
Beta Was this translation helpful? Give feedback.
DataFetchingEnvironment
containsGraphQLContext
(which can be any object) as well as some additional information about the currently executed request (i.e. which field is being requested, what arguments were specified, etc).