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