Class DataFetcherMappingInfo

java.lang.Object
org.springframework.graphql.data.method.annotation.support.DataFetcherMappingInfo

public final class DataFetcherMappingInfo extends Object
Mapping information for a controller method to be registered as a DataFetcher.
Since:
1.3.0
Author:
Rossen Stoyanchev
  • Constructor Details

  • Method Details

    • getCoordinates

      public FieldCoordinates getCoordinates()
      The field to bind the controller method to.
    • getTypeName

      public String getTypeName()
      Shortcut for the typeName from the coordinates.
    • getFieldName

      public String getFieldName()
      Shortcut for the fieldName from the coordinates.
    • isBatchMapping

      public boolean isBatchMapping()
      Whether it is an BatchMapping method or not in which case it is an SchemaMapping method.
    • getMaxBatchSize

      public int getMaxBatchSize()
      A batch size limit to apply for a batch mapping method, or -1 if a limit does not apply.
    • getHandlerMethod

      public HandlerMethod getHandlerMethod()
      The controller method to use for data fetching.
    • equals

      public boolean equals(@Nullable Object other)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object