Sha256: cb9c24747f06b85e448ce7e7cfd695c3957a0fa91b86c75915b704e214bbba9f

Contents?: true

Size: 483 Bytes

Versions: 22

Compression:

Stored size: 483 Bytes

Contents

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

22 entries across 22 versions & 1 rubygems

Version Path
graphql-1.2.6 lib/graphql/define/assign_connection.rb
graphql-1.2.5 lib/graphql/define/assign_connection.rb
graphql-1.2.4 lib/graphql/define/assign_connection.rb
graphql-1.2.3 lib/graphql/define/assign_connection.rb
graphql-1.2.2 lib/graphql/define/assign_connection.rb
graphql-1.2.1 lib/graphql/define/assign_connection.rb
graphql-1.2.0 lib/graphql/define/assign_connection.rb
graphql-1.1.0 lib/graphql/define/assign_connection.rb
graphql-1.0.0 lib/graphql/define/assign_connection.rb
graphql-0.19.4 lib/graphql/define/assign_connection.rb
graphql-0.19.3 lib/graphql/define/assign_connection.rb
graphql-0.19.2 lib/graphql/define/assign_connection.rb
graphql-0.19.1 lib/graphql/define/assign_connection.rb
graphql-0.19.0 lib/graphql/define/assign_connection.rb
graphql-0.18.15 lib/graphql/define/assign_connection.rb
graphql-0.18.14 lib/graphql/define/assign_connection.rb
graphql-0.18.13 lib/graphql/define/assign_connection.rb
graphql-0.18.12 lib/graphql/define/assign_connection.rb
graphql-0.18.11 lib/graphql/define/assign_connection.rb
graphql-0.18.10 lib/graphql/define/assign_connection.rb