Class FieldHelper
java.lang.Object
io.smallrye.graphql.execution.datafetcher.helper.AbstractHelper
io.smallrye.graphql.execution.datafetcher.helper.FieldHelper
Help with the field response
Here we need to transform (if needed) the response field
- Author:
- Phillip Kruger (phillip.kruger@redhat.com)
-
Field Summary
Fields inherited from class io.smallrye.graphql.execution.datafetcher.helper.AbstractHelper
classloadingService, mapAdapter -
Constructor Summary
ConstructorsConstructorDescriptionFieldHelper(Field field) We need the modeled field to create the correct value -
Method Summary
Modifier and TypeMethodDescriptionprotected ObjectafterRecursiveTransform(Object fieldValue, Field field, graphql.schema.DataFetchingEnvironment dfe) protected Class<?> getArrayType(Field field) transformOrAdaptResponse(Object argumentValue, graphql.schema.DataFetchingEnvironment dfe) Methods inherited from class io.smallrye.graphql.execution.datafetcher.helper.AbstractHelper
getReflectionInvokerForInput, getReflectionInvokerForOutput, getTransformer, shouldAdapt, shouldAdaptTo, shouldAdaptWith, shouldAutoAdaptWithMap, shouldTransform, transformOrAdapt
-
Constructor Details
-
FieldHelper
We need the modeled field to create the correct value- Parameters:
field- the field
-
-
Method Details
-
transformOrAdaptResponse
public Object transformOrAdaptResponse(Object argumentValue, graphql.schema.DataFetchingEnvironment dfe) throws AbstractDataFetcherException - Throws:
AbstractDataFetcherException
-
afterRecursiveTransform
-
getArrayType
- Overrides:
getArrayTypein classAbstractHelper
-