Interface DataLoaderRegistrar
- All Known Subinterfaces:
BatchLoaderRegistry
- All Known Implementing Classes:
DefaultBatchLoaderRegistry
public interface DataLoaderRegistrar
Contract for access to the
DataLoaderRegistry for each request for
the purpose of registering DataLoader instances.- Since:
- 1.0.0
- Author:
- Rossen Stoyanchev
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidregisterDataLoaders(org.dataloader.DataLoaderRegistry registry, GraphQLContext context) Callback that provides access to theDataLoaderRegistryfrom the theExecutionInput.
-
Method Details
-
registerDataLoaders
Callback that provides access to theDataLoaderRegistryfrom the theExecutionInput.- Parameters:
registry- the registry to make registrations againstcontext- the GraphQLContext from the ExecutionInput that registrars should set in theDataLoaderOptionsso that batch loaders can access it viaBatchLoaderEnvironment.
-