Class FetchedValue

java.lang.Object
graphql.execution.FetchedValue

@PublicApi public class FetchedValue extends Object
Note: This MAY be returned by InstrumentationFieldCompleteParameters.getFetchedObject() and therefore part of the public despite never used in a method signature.
  • Constructor Details

  • Method Details

    • getFetchedValue

      public static Object getFetchedValue(Object sourceValue)
      This allows you to get to the underlying fetched value depending on whether the source value is a FetchedValue or not
      Parameters:
      sourceValue - the source value in play
      Returns:
      the getFetchedValue() if its wrapped otherwise the source value itself
    • getLocalContext

      public static Object getLocalContext(Object sourceValue, Object defaultLocalContext)
      This allows you to get to the local context depending on whether the source value is a FetchedValue or not
      Parameters:
      sourceValue - the source value in play
      defaultLocalContext - the default local context to use
      Returns:
      the getFetchedValue() if its wrapped otherwise the default local context
    • getFetchedValue

      public Object getFetchedValue()
    • getErrors

      public List<GraphQLError> getErrors()
    • getLocalContext

      public Object getLocalContext()
    • toString

      public String toString()
      Overrides:
      toString in class Object