Module: GraphQL::Types::Relay::EdgeBehaviors

Included in:
BaseEdge
Defined in:
lib/graphql/types/relay/edge_behaviors.rb

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#nodeObject



16
17
18
19
20
21
# File 'lib/graphql/types/relay/edge_behaviors.rb', line 16

def node
  current_runtime_state = Fiber[:__graphql_runtime_info]
  query_runtime_state = current_runtime_state[context.query]
  query_runtime_state.was_authorized_by_scope_items = @object.was_authorized_by_scope_items?
  @object.node
end