Sha256: 60cb9a9766499685dd16d37e44e11318f6d85b13a3fc742b6e005906f8c14ca3

Contents?: true

Size: 290 Bytes

Versions: 39

Compression:

Stored size: 290 Bytes

Contents

# frozen_string_literal: true

module Osso
  module GraphQL
    module Types
      class BaseConnection < ::GraphQL::Types::Relay::BaseConnection
        field :total_count, Integer, null: false

        def total_count
          object.items&.count
        end
      end
    end
  end
end

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
osso-0.1.2 lib/osso/graphql/types/base_connection.rb
osso-0.1.1 lib/osso/graphql/types/base_connection.rb
osso-0.1.0 lib/osso/graphql/types/base_connection.rb
osso-0.0.11 lib/osso/graphql/types/base_connection.rb
osso-0.0.10 lib/osso/graphql/types/base_connection.rb
osso-0.0.8 lib/osso/graphql/types/base_connection.rb
osso-0.0.7 lib/osso/graphql/types/base_connection.rb
osso-0.0.6 lib/osso/graphql/types/base_connection.rb
osso-0.0.6.alpha lib/osso/graphql/types/base_connection.rb
osso-0.0.5 lib/osso/graphql/types/base_connection.rb
osso-0.0.5.pre.lambda lib/osso/graphql/types/base_connection.rb
osso-0.0.5.pre.kappa lib/osso/graphql/types/base_connection.rb
osso-0.0.5.pre.iota lib/osso/graphql/types/base_connection.rb
osso-0.0.5.pre.theta lib/osso/graphql/types/base_connection.rb
osso-0.0.5.pre.eta lib/osso/graphql/types/base_connection.rb
osso-0.0.5.pre.zeta lib/osso/graphql/types/base_connection.rb
osso-0.0.5.pre.epsilon lib/osso/graphql/types/base_connection.rb
osso-0.0.5.pre.delta lib/osso/graphql/types/base_connection.rb
osso-0.0.5.pre.gamma lib/osso/graphql/types/base_connection.rb
osso-0.0.5.pre.beta lib/osso/graphql/types/base_connection.rb