Module: GraphQL::Relay::Define::AssignGlobalIdField
- Defined in:
- lib/graphql/relay/define.rb
Class Method Summary collapse
Class Method Details
.call(type_defn, field_name) ⇒ Object
13 14 15 16 |
# File 'lib/graphql/relay/define.rb', line 13 def self.call(type_defn, field_name) type_defn.name || raise("You must define the type's name before creating a GlobalIdField") GraphQL::Define::AssignObjectField.call(type_defn, field_name, field: GraphQL::Relay::GlobalIdField.new(type_defn.name)) end |