Sha256: 39ae5836cfd1031fc0c7f97427f306169f4f821ec72903d347dbc3afea1d09f0
Contents?: true
Size: 471 Bytes
Versions: 8
Compression:
Stored size: 471 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[name.to_s] = connection_field end end end end
Version data entries
8 entries across 8 versions & 1 rubygems