module GraphQL::Execution::Interpreter::Runtime::GraphQLResult

Attributes

graphql_dead[RW]
graphql_non_null_field_names[RW]

Although these are used by only one of the Result classes, it's handy to have the methods implemented on both (even though they just return `nil`) because it makes it easy to check if anything is assigned. @return [nil, Array<String>]

graphql_non_null_list_items[RW]

@return [nil, true]

graphql_parent[R]
graphql_result_data[RW]

@return [Hash] Plain-Ruby result data (`@graphql_metadata` contains Result wrapper objects)

graphql_result_name[R]

Public Class Methods

new(result_name, parent_result) click to toggle source
# File lib/graphql/execution/interpreter/runtime.rb, line 13
def initialize(result_name, parent_result)
  @graphql_parent = parent_result
  if parent_result && parent_result.graphql_dead
    @graphql_dead = true
  end
  @graphql_result_name = result_name
  # Jump through some hoops to avoid creating this duplicate storage if at all possible.
  @graphql_metadata = nil
end