Class FieldHelper
- java.lang.Object
-
- io.smallrye.graphql.execution.datafetcher.helper.AbstractHelper
-
- io.smallrye.graphql.execution.datafetcher.helper.FieldHelper
-
public class FieldHelper extends AbstractHelper
Help with the field response Here we need to transform (if needed) the response field- Author:
- Phillip Kruger ([email protected])
-
-
Field Summary
-
Fields inherited from class io.smallrye.graphql.execution.datafetcher.helper.AbstractHelper
classloadingService, mapAdapter
-
-
Constructor Summary
Constructors Constructor Description FieldHelper(Field field)
We need the modeled field to create the correct value
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Object
afterRecursiveTransform(Object fieldValue, Field field, graphql.schema.DataFetchingEnvironment dfe)
protected Class<?>
getArrayType(Field field)
Object
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 Detail
-
FieldHelper
public FieldHelper(Field field)
We need the modeled field to create the correct value- Parameters:
field
- the field
-
-
Method Detail
-
transformOrAdaptResponse
public Object transformOrAdaptResponse(Object argumentValue, graphql.schema.DataFetchingEnvironment dfe) throws AbstractDataFetcherException
- Throws:
AbstractDataFetcherException
-
afterRecursiveTransform
protected Object afterRecursiveTransform(Object fieldValue, Field field, graphql.schema.DataFetchingEnvironment dfe)
-
getArrayType
protected Class<?> getArrayType(Field field)
- Overrides:
getArrayType
in classAbstractHelper
-
-