Sha256: 1b843dbe109fc99f5af93e095fdf3654065dc29f6d6bb2bd8cdc76db7f917d06

Contents?: true

Size: 334 Bytes

Versions: 14

Compression:

Stored size: 334 Bytes

Contents

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

14 entries across 14 versions & 1 rubygems

Version Path
graphql-1.2.6 lib/graphql/define/assign_global_id_field.rb
graphql-1.2.5 lib/graphql/define/assign_global_id_field.rb
graphql-1.2.4 lib/graphql/define/assign_global_id_field.rb
graphql-1.2.3 lib/graphql/define/assign_global_id_field.rb
graphql-1.2.2 lib/graphql/define/assign_global_id_field.rb
graphql-1.2.1 lib/graphql/define/assign_global_id_field.rb
graphql-1.2.0 lib/graphql/define/assign_global_id_field.rb
graphql-1.1.0 lib/graphql/define/assign_global_id_field.rb
graphql-1.0.0 lib/graphql/define/assign_global_id_field.rb
graphql-0.19.4 lib/graphql/define/assign_global_id_field.rb
graphql-0.19.3 lib/graphql/define/assign_global_id_field.rb
graphql-0.19.2 lib/graphql/define/assign_global_id_field.rb
graphql-0.19.1 lib/graphql/define/assign_global_id_field.rb
graphql-0.19.0 lib/graphql/define/assign_global_id_field.rb