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

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

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#default_global_idObject



13
14
15
# File 'lib/graphql/types/relay/node_behaviors.rb', line 13

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