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

: (untyped object, GraphQL::Query::Context context) -> String



34
35
36
# File 'lib/graphql/types/relay/node_behaviors.rb', line 34

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

#included(child_class) ⇒ Object

: (Module child_class) -> void



39
40
41
# File 'lib/graphql/types/relay/node_behaviors.rb', line 39

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