Sha256: e94dd73a6e48478491aaab271095b2bf60e84bcc5f0b9eaafe5051cce89cf2e8

Contents?: true

Size: 407 Bytes

Versions: 49

Compression:

Stored size: 407 Bytes

Contents

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

Version data entries

49 entries across 49 versions & 2 rubygems

Version Path
graphql-1.13.23 lib/graphql/define/assign_global_id_field.rb
graphql-1.13.22 lib/graphql/define/assign_global_id_field.rb
graphql-1.13.21 lib/graphql/define/assign_global_id_field.rb
graphql-1.13.20 lib/graphql/define/assign_global_id_field.rb
graphql-1.13.19 lib/graphql/define/assign_global_id_field.rb
graphql-1.13.18 lib/graphql/define/assign_global_id_field.rb
graphql-1.13.17 lib/graphql/define/assign_global_id_field.rb
graphql-1.13.16 lib/graphql/define/assign_global_id_field.rb
graphql-1.13.15 lib/graphql/define/assign_global_id_field.rb
graphql-1.13.14 lib/graphql/define/assign_global_id_field.rb
graphql-1.13.13 lib/graphql/define/assign_global_id_field.rb
graphql_cody-1.13.0 lib/graphql/define/assign_global_id_field.rb
graphql-1.13.12 lib/graphql/define/assign_global_id_field.rb
graphql-1.13.11 lib/graphql/define/assign_global_id_field.rb
graphql-1.13.10 lib/graphql/define/assign_global_id_field.rb
graphql-1.13.9 lib/graphql/define/assign_global_id_field.rb
graphql-1.12.24 lib/graphql/define/assign_global_id_field.rb
graphql-1.13.8 lib/graphql/define/assign_global_id_field.rb
graphql-1.13.7 lib/graphql/define/assign_global_id_field.rb
graphql-1.13.6 lib/graphql/define/assign_global_id_field.rb