Class DataLoaderDispatcherInstrumentation

  • All Implemented Interfaces:
    Instrumentation

    @PublicApi
    public class DataLoaderDispatcherInstrumentation
    extends SimplePerformantInstrumentation
    This graphql Instrumentation will dispatch all the contained DataLoaders when each level of the graphql query is executed.

    This allows you to use DataLoaders in your DataFetchers to optimal loading of data.

    A DataLoaderDispatcherInstrumentation will be automatically added to the GraphQL instrumentation list if one is not present.

    See Also:
    DataLoader, DataLoaderRegistry