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