module GraphQL::Types::Relay::NodeBehaviors
Public Class Methods
Source
# File lib/graphql/types/relay/node_behaviors.rb, line 10 def self.included(child_module) child_module.extend(ClassMethods) child_module.extend(ExecutionMethods) child_module.description("An object with an ID.") child_module.field(:id, ID, null: false, description: "ID of the object.", resolver_method: :default_global_id, resolve_each: :default_global_id) end
Public Instance Methods
Source
# File lib/graphql/types/relay/node_behaviors.rb, line 17 def default_global_id node_class = self.class #: as GraphQL::Types::Relay::NodeBehaviors::ExecutionMethods node_class.default_global_id(object, context) end