-
Notifications
You must be signed in to change notification settings - Fork 305
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Propagate context to Dataloader in
@BatchMapping
Prior to this commit, `@BatchMapping` controller methods would be automatically registered as date fetchers delegating to data loader calls. Those calls would not include the current local context or main context. As a result, injecting the `BatchLoaderEnvironment` in the controller method signature would not contain the `getKeyContext()`. This commit ensures that dataloader calls not only use the current source, but also the current local context/main context so that it will be present in the key contexts map. Fixes gh-1071
- Loading branch information
Showing
2 changed files
with
45 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters