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.0.pre6 lib/graphql/define/assign_global_id_field.rb
graphql-1.8.0.pre5 lib/graphql/define/assign_global_id_field.rb
graphql-1.7.9 lib/graphql/define/assign_global_id_field.rb
graphql-1.8.0.pre4 lib/graphql/define/assign_global_id_field.rb
graphql-1.8.0.pre3 lib/graphql/define/assign_global_id_field.rb
graphql-1.7.8 lib/graphql/define/assign_global_id_field.rb
graphql-1.8.0.pre2 lib/graphql/define/assign_global_id_field.rb
graphql-1.7.7 lib/graphql/define/assign_global_id_field.rb
graphql-1.8.0.pre1 lib/graphql/define/assign_global_id_field.rb
graphql-1.7.6 lib/graphql/define/assign_global_id_field.rb
graphql-1.7.5 lib/graphql/define/assign_global_id_field.rb
graphql-1.7.4 lib/graphql/define/assign_global_id_field.rb
graphql-1.7.3 lib/graphql/define/assign_global_id_field.rb
graphql-1.7.2 lib/graphql/define/assign_global_id_field.rb
graphql-1.7.1 lib/graphql/define/assign_global_id_field.rb
graphql-1.7.0 lib/graphql/define/assign_global_id_field.rb
graphql-1.6.8 lib/graphql/define/assign_global_id_field.rb
graphql-1.6.7 lib/graphql/define/assign_global_id_field.rb
graphql-1.6.6 lib/graphql/define/assign_global_id_field.rb
graphql-1.6.5 lib/graphql/define/assign_global_id_field.rb