Module: GraphQL::Types::Relay::NodeBehaviors::ExecutionMethods

Defined in:
lib/graphql/types/relay/node_behaviors.rb

Instance Method Summary collapse

Instance Method Details

#default_global_id(object, context) ⇒ Object



25
26
27
# File 'lib/graphql/types/relay/node_behaviors.rb', line 25

def default_global_id(object, context)
  context.schema.id_from_object(object, self, context)
end

#included(child_class) ⇒ Object



29
30
31
# File 'lib/graphql/types/relay/node_behaviors.rb', line 29

def included(child_class)
  child_class.extend(ExecutionMethods)
end