Class DataFetcherMappingInfo
java.lang.Object
org.springframework.graphql.data.method.annotation.support.DataFetcherMappingInfo
Mapping information for a controller method to be registered as a
DataFetcher.- Since:
- 1.3.0
- Author:
- Rossen Stoyanchev
-
Constructor Summary
ConstructorsConstructorDescriptionDataFetcherMappingInfo(String typeName, String field, boolean batchMapping, int maxBatchSize, HandlerMethod handlerMethod) DataFetcherMappingInfo(String typeName, DataFetcherMappingInfo info) -
Method Summary
Modifier and TypeMethodDescriptionbooleangraphql.schema.FieldCoordinatesThe field to bind the controller method to.Shortcut for the fieldName from the coordinates.The controller method to use for data fetching.intA batch size limit to apply for a batch mapping method, or -1 if a limit does not apply.Shortcut for the typeName from the coordinates.inthashCode()booleanWhether it is anBatchMappingmethod or not in which case it is anSchemaMappingmethod.toString()
-
Constructor Details
-
DataFetcherMappingInfo
public DataFetcherMappingInfo(String typeName, String field, boolean batchMapping, int maxBatchSize, HandlerMethod handlerMethod) -
DataFetcherMappingInfo
-
-
Method Details
-
getCoordinates
public graphql.schema.FieldCoordinates getCoordinates()The field to bind the controller method to. -
getTypeName
Shortcut for the typeName from the coordinates. -
getFieldName
Shortcut for the fieldName from the coordinates. -
isBatchMapping
public boolean isBatchMapping()Whether it is anBatchMappingmethod or not in which case it is anSchemaMappingmethod. -
getMaxBatchSize
public int getMaxBatchSize()A batch size limit to apply for a batch mapping method, or -1 if a limit does not apply. -
getHandlerMethod
The controller method to use for data fetching. -
equals
-
hashCode
-
toString
-