Sha256: e7256d3c2323dccd55bc5d98093bdb4e1b055d72e4dccc85033be51545a96473
Contents?: true
Size: 450 Bytes
Versions: 26
Compression:
Stored size: 450 Bytes
Contents
# frozen_string_literal: true module Ibrain module Types class BaseConnection < Types::BaseObject # add `nodes` and `pageInfo` fields, as well as `edge_type(...)` and `node_nullable(...)` overrides include GraphQL::Types::Relay::ConnectionBehaviors field :aggregate, Ibrain::Types::AggregateType, null: false, camelize: false def aggregate Ibrain::Aggregate.new(object.items.size) end end end end
Version data entries
26 entries across 26 versions & 1 rubygems