Sha256: 13e835628e8dfc759b128107a1bf7b44fcf1f83613b32efeba2010412663d935

Contents?: true

Size: 364 Bytes

Versions: 126

Compression:

Stored size: 364 Bytes

Contents

# frozen_string_literal: true
module GraphQL
  module Define
    module AssignGlobalIdField
      def self.call(type_defn, field_name)
        resolve = GraphQL::Relay::GlobalIdResolve.new(type: type_defn)
        GraphQL::Define::AssignObjectField.call(type_defn, field_name, type: GraphQL::ID_TYPE.to_non_null_type, resolve: resolve)
      end
    end
  end
end

Version data entries

126 entries across 126 versions & 1 rubygems

Version Path
graphql-1.8.9 lib/graphql/define/assign_global_id_field.rb
graphql-1.8.8 lib/graphql/define/assign_global_id_field.rb
graphql-1.8.7 lib/graphql/define/assign_global_id_field.rb
graphql-1.8.6 lib/graphql/define/assign_global_id_field.rb
graphql-1.8.5 lib/graphql/define/assign_global_id_field.rb
graphql-1.8.4 lib/graphql/define/assign_global_id_field.rb
graphql-1.8.3 lib/graphql/define/assign_global_id_field.rb
graphql-1.8.2 lib/graphql/define/assign_global_id_field.rb
graphql-1.8.1 lib/graphql/define/assign_global_id_field.rb
graphql-1.8.0 lib/graphql/define/assign_global_id_field.rb
graphql-1.8.0.pre11 lib/graphql/define/assign_global_id_field.rb
graphql-1.8.0.pre10 lib/graphql/define/assign_global_id_field.rb
graphql-1.7.14 lib/graphql/define/assign_global_id_field.rb
graphql-1.8.0.pre9 lib/graphql/define/assign_global_id_field.rb
graphql-1.8.0.pre8 lib/graphql/define/assign_global_id_field.rb
graphql-1.7.13 lib/graphql/define/assign_global_id_field.rb
graphql-1.8.0.pre7 lib/graphql/define/assign_global_id_field.rb
graphql-1.7.12 lib/graphql/define/assign_global_id_field.rb
graphql-1.7.11 lib/graphql/define/assign_global_id_field.rb
graphql-1.7.10 lib/graphql/define/assign_global_id_field.rb