Class DataFetcherFactory

java.lang.Object
io.smallrye.graphql.bootstrap.DataFetcherFactory

public class DataFetcherFactory extends Object
Create the datafetchers for a certain operation
Author:
Phillip Kruger (phillip.kruger@redhat.com)
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> graphql.schema.DataFetcher<T>
    getDataFetcher(io.smallrye.graphql.schema.model.Operation operation, io.smallrye.graphql.schema.model.Type type)
     
    getFieldDataFetcher(io.smallrye.graphql.schema.model.Field field, io.smallrye.graphql.schema.model.Type type, io.smallrye.graphql.schema.model.Reference owner)
     
    <K, T> org.dataloader.BatchLoaderWithContext<K,T>
    getSourceBatchLoader(io.smallrye.graphql.schema.model.Operation operation, io.smallrye.graphql.schema.model.Type type)
     
    io.smallrye.graphql.schema.model.Wrapper
    unwrap(io.smallrye.graphql.schema.model.Field field, boolean isBatch)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DataFetcherFactory

      public DataFetcherFactory()
  • Method Details

    • getDataFetcher

      public <T> graphql.schema.DataFetcher<T> getDataFetcher(io.smallrye.graphql.schema.model.Operation operation, io.smallrye.graphql.schema.model.Type type)
    • getFieldDataFetcher

      public <T> PlugableDataFetcher<T> getFieldDataFetcher(io.smallrye.graphql.schema.model.Field field, io.smallrye.graphql.schema.model.Type type, io.smallrye.graphql.schema.model.Reference owner)
    • getSourceBatchLoader

      public <K, T> org.dataloader.BatchLoaderWithContext<K,T> getSourceBatchLoader(io.smallrye.graphql.schema.model.Operation operation, io.smallrye.graphql.schema.model.Type type)
    • unwrap

      public io.smallrye.graphql.schema.model.Wrapper unwrap(io.smallrye.graphql.schema.model.Field field, boolean isBatch)