Add support for @ContextValue method parameters

See gh-172
This commit is contained in:
Rossen Stoyanchev
2021-12-08 09:47:49 +00:00
parent e6453ef9b0
commit 50aeaba63e
6 changed files with 315 additions and 4 deletions

View File

@@ -683,6 +683,10 @@ See <<controllers-schema-mapping-source>>.
| For access to a `DataLoader` in the `DataLoaderRegistry`.
See <<controllers-schema-mapping-data-loader>>.
| `@ContextValue`
| For access to a value from the localContext, if it is an instance of `GraphQLContext`,
or from the `GraphQLContext` of `DataFetchingEnvironment`.
| `GraphQLContext`
| For access to the context from the `DataFetchingEnvironment`.