public interface DataLoaderRegistrar
DataLoaderRegistry
for each request for
the purpose of registering DataLoader
instances.ExecutionInput.getDataLoaderRegistry()
Modifier and Type | Method and Description |
---|---|
void |
registerDataLoaders(org.dataloader.DataLoaderRegistry registry,
GraphQLContext context)
Callback that provides access to the
DataLoaderRegistry from the
the ExecutionInput . |
void registerDataLoaders(org.dataloader.DataLoaderRegistry registry, GraphQLContext context)
DataLoaderRegistry
from the
the ExecutionInput
.registry
- the registry to make registrations againstcontext
- the GraphQLContext from the ExecutionInput that registrars
should set in the DataLoaderOptions
so that batch
loaders can access it via BatchLoaderEnvironment
.