Package graphql

Interface ExecutionResult.Builder<B extends ExecutionResult.Builder<B>>

All Known Implementing Classes:
ExecutionResultImpl.Builder, IncrementalExecutionResultImpl.Builder
Enclosing interface:
ExecutionResult

public static interface ExecutionResult.Builder<B extends ExecutionResult.Builder<B>>
  • Method Details

    • from

      B from(ExecutionResult executionResult)
      Sets values into the builder based on a previous ExecutionResult
      Parameters:
      executionResult - the previous ExecutionResult
      Returns:
      the builder
    • data

      B data(Object data)
      Sets new data into the builder
      Parameters:
      data - the data to use
      Returns:
      the builder
    • errors

      B errors(List<GraphQLError> errors)
      Sets error list as the errors for this builder
      Parameters:
      errors - the errors to use
      Returns:
      the builder
    • addErrors

      B addErrors(List<GraphQLError> errors)
      Adds the error list to any existing the errors for this builder
      Parameters:
      errors - the errors to add
      Returns:
      the builder
    • addError

      B addError(GraphQLError error)
      Adds the error to any existing the errors for this builder
      Parameters:
      error - the error to add
      Returns:
      the builder
    • extensions

      B extensions(Map<Object,Object> extensions)
      Sets the extension map for this builder
      Parameters:
      extensions - the extensions to use
      Returns:
      the builder
    • addExtension

      B addExtension(String key, Object value)
      Adds a new entry into the extensions map for this builder
      Parameters:
      key - the key of the extension entry
      value - the value of the extension entry
      Returns:
      the builder
    • build

      Returns:
      a newly built ExecutionResult