Sha256: df220e968b433565f34dd4e64606d5e6c954c71f942bab39716323f964f3dec7

Contents?: true

Size: 513 Bytes

Versions: 13

Compression:

Stored size: 513 Bytes

Contents

# frozen_string_literal: true
module GraphQL
  module Define
    module AssignConnection
      def self.call(type_defn, *field_args, max_page_size: nil, **field_kwargs, &field_block)
        underlying_field = GraphQL::Define::AssignObjectField.call(type_defn, *field_args, **field_kwargs, &field_block)
        connection_field = GraphQL::Relay::ConnectionField.create(underlying_field, max_page_size: max_page_size)
        type_defn.fields[underlying_field.name] = connection_field
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
graphql-1.5.7.1 lib/graphql/define/assign_connection.rb
graphql-1.5.7 lib/graphql/define/assign_connection.rb
graphql-1.5.6 lib/graphql/define/assign_connection.rb
graphql-1.5.5 lib/graphql/define/assign_connection.rb
graphql-1.5.4 lib/graphql/define/assign_connection.rb
graphql-1.5.3 lib/graphql/define/assign_connection.rb
graphql-1.4.5 lib/graphql/define/assign_connection.rb
graphql-1.4.4 lib/graphql/define/assign_connection.rb
graphql-1.4.3 lib/graphql/define/assign_connection.rb
graphql-1.4.2 lib/graphql/define/assign_connection.rb
graphql-1.4.1 lib/graphql/define/assign_connection.rb
graphql-1.4.0 lib/graphql/define/assign_connection.rb
graphql-1.3.0 lib/graphql/define/assign_connection.rb