Support Principal as a method argument

Closes gh-119
This commit is contained in:
Rossen Stoyanchev
2021-11-11 15:01:16 +00:00
parent 3669d29c5f
commit 9a7bab42c9
12 changed files with 699 additions and 86 deletions

View File

@@ -605,6 +605,9 @@ See <<controllers-schema-mapping-data-loader>>.
| `GraphQLContext`
| For access to the context from the `DataFetchingEnvironment`.
| `java.security.Principal`
| Obtained from Spring Security context, if available.
| `DataFetchingFieldSelectionSet`
| For access to the selection set for the query through the `DataFetchingEnvironment`.
@@ -802,6 +805,9 @@ Batch mapping methods support two types of arguments:
| `List<K>`
| The source/parent objects.
| `java.security.Principal`
| Obtained from Spring Security context, if available.
| `BatchLoaderEnvironment`
| The environment that is available in GraphQL Java to a
`org.dataloader.BatchLoaderWithContext`.