Sha256: f212be11f09bb4688961f65ea5b365ebf5d6a9cb83b22511a0fbd8d46f18666c
Contents?: true
Size: 410 Bytes
Versions: 31
Compression:
Stored size: 410 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 :total_count, Integer, null: false, camelize: false def total_count object.items.size end end end end
Version data entries
31 entries across 31 versions & 1 rubygems