module GraphQL::Types::Relay::NodeBehaviors

Public Class Methods

included(child_module) click to toggle source
# File lib/graphql/types/relay/node_behaviors.rb, line 7
def self.included(child_module)
  child_module.extend(DefaultRelay)
  child_module.description("An object with an ID.")
  child_module.field(:id, ID, null: false, description: "ID of the object.")
end