Package graphql.spring.web.servlet
Interface OnDemandDataLoaderRegistry
public interface OnDemandDataLoaderRegistry
This interface allows to create a Spring Bean that will provide a
DataLoaderRegistry, on demand. It can be
used by the GraphQLInvocation bean to associate a new DataLoaderRegistry for each request.- Author:
- etienne-sf
-
Method Summary
Modifier and Type Method Description org.dataloader.DataLoaderRegistrygetNewDataLoaderRegistry()Retrieves a newDataLoaderRegistry, that can be associated to each request.
-
Method Details
-
getNewDataLoaderRegistry
org.dataloader.DataLoaderRegistry getNewDataLoaderRegistry()Retrieves a newDataLoaderRegistry, that can be associated to each request.- Returns:
- A new
DataLoaderRegistrythat is created each time this method is called.
-