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



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

def node
  current_runtime_state = Thread.current[:__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