Sha256: 96dfc655099c1b32c1ba24ff334328f92347f8b2d93654678e03a44287d153f8

Contents?: true

Size: 508 Bytes

Versions: 168

Compression:

Stored size: 508 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)
        underlying_field.connection_max_page_size = max_page_size
        underlying_field.connection = true
        type_defn.fields[underlying_field.name] = underlying_field
      end
    end
  end
end

Version data entries

168 entries across 168 versions & 2 rubygems

Version Path
graphql-1.10.0.pre4 lib/graphql/define/assign_connection.rb
graphql-1.9.18 lib/graphql/define/assign_connection.rb
graphql-1.10.0.pre3 lib/graphql/define/assign_connection.rb
graphql-1.9.17 lib/graphql/define/assign_connection.rb
graphql-1.10.0.pre2 lib/graphql/define/assign_connection.rb
graphql-1.9.16 lib/graphql/define/assign_connection.rb
graphql-1.9.15 lib/graphql/define/assign_connection.rb
graphql-1.9.14 lib/graphql/define/assign_connection.rb
graphql-1.10.0.pre1 lib/graphql/define/assign_connection.rb
graphql-1.9.13 lib/graphql/define/assign_connection.rb
graphql-1.9.12 lib/graphql/define/assign_connection.rb
graphql-1.9.11 lib/graphql/define/assign_connection.rb
graphql-1.9.10 lib/graphql/define/assign_connection.rb
graphql-1.9.9 lib/graphql/define/assign_connection.rb
graphql-1.9.8 lib/graphql/define/assign_connection.rb
graphql-1.9.7 lib/graphql/define/assign_connection.rb
graphql-1.9.6 lib/graphql/define/assign_connection.rb
graphql-1.9.5 lib/graphql/define/assign_connection.rb
graphql-1.9.4 lib/graphql/define/assign_connection.rb
graphql-1.9.3 lib/graphql/define/assign_connection.rb