Sha256: 33cf62fc4c6cfcabdb40ad92e90a20b9ad9440c08ea5e1aab5cb8be1240d8d37
Contents?: true
Size: 413 Bytes
Versions: 19
Compression:
Stored size: 413 Bytes
Contents
# frozen_string_literal: true module Ibrain module Types class BaseApiConnection < Types::BaseObject # add `nodes` and `pageInfo` fields, as well as `edge_type(...)` and `node_nullable(...)` overrides include GraphQL::Types::Relay::ConnectionBehaviors field :total_count, Integer, null: false, camelize: false def total_count object.items.size end end end end
Version data entries
19 entries across 19 versions & 1 rubygems