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.18 lib/graphql/define/assign_global_id_field.rb
graphql-1.11.5 lib/graphql/define/assign_global_id_field.rb
graphql-1.11.4 lib/graphql/define/assign_global_id_field.rb
graphql-1.11.3 lib/graphql/define/assign_global_id_field.rb
graphql-1.11.2 lib/graphql/define/assign_global_id_field.rb
graphql-1.10.14 lib/graphql/define/assign_global_id_field.rb
graphql-1.11.1 lib/graphql/define/assign_global_id_field.rb
graphql-1.10.13 lib/graphql/define/assign_global_id_field.rb
graphql-1.11.0 lib/graphql/define/assign_global_id_field.rb
graphql-1.10.12 lib/graphql/define/assign_global_id_field.rb
graphql-1.9.21 lib/graphql/define/assign_global_id_field.rb
graphql-1.10.11 lib/graphql/define/assign_global_id_field.rb
graphql-1.9.20 lib/graphql/define/assign_global_id_field.rb
graphql-1.10.10 lib/graphql/define/assign_global_id_field.rb
graphql-1.10.9 lib/graphql/define/assign_global_id_field.rb
graphql-1.10.8 lib/graphql/define/assign_global_id_field.rb
graphql-1.10.7 lib/graphql/define/assign_global_id_field.rb
graphql-1.10.6 lib/graphql/define/assign_global_id_field.rb
graphql-1.10.5 lib/graphql/define/assign_global_id_field.rb
graphql-1.10.4 lib/graphql/define/assign_global_id_field.rb