Package graphql.execution
Class FetchedValue
java.lang.Object
graphql.execution.FetchedValue
Note: This MAY be returned by
InstrumentationFieldCompleteParameters.getFetchedObject()
and therefore part of the public despite never used in a method signature.-
Constructor Summary
ConstructorsConstructorDescriptionFetchedValue(Object fetchedValue, List<GraphQLError> errors, Object localContext) -
Method Summary
Modifier and TypeMethodDescriptionstatic ObjectgetFetchedValue(Object sourceValue) This allows you to get to the underlying fetched value depending on whether the source value is aFetchedValueor notstatic ObjectgetLocalContext(Object sourceValue, Object defaultLocalContext) This allows you to get to the local context depending on whether the source value is aFetchedValueor nottoString()
-
Constructor Details
-
FetchedValue
-
-
Method Details
-
getFetchedValue
This allows you to get to the underlying fetched value depending on whether the source value is aFetchedValueor not- Parameters:
sourceValue- the source value in play- Returns:
- the
getFetchedValue()if its wrapped otherwise the source value itself
-
getLocalContext
This allows you to get to the local context depending on whether the source value is aFetchedValueor not- Parameters:
sourceValue- the source value in playdefaultLocalContext- the default local context to use- Returns:
- the
getFetchedValue()if its wrapped otherwise the default local context
-
getFetchedValue
-
getErrors
-
getLocalContext
-
toString
-