Class: Types::LimitedCountableConnectionType
- Inherits:
-
GraphQL::Types::Relay::BaseConnection
- Object
- GraphQL::Types::Relay::BaseConnection
- Types::LimitedCountableConnectionType
- Includes:
- CountableConnectionHelper
- Defined in:
- app/graphql/types/limited_countable_connection_type.rb
Overview
rubocop: disable Graphql/AuthorizeTypes
Constant Summary collapse
- COUNT_LIMIT =
1000- COUNT_DESCRIPTION =
"Limited count of collection. Returns limit + 1 for counts greater than the limit."
Instance Method Summary collapse
Methods included from CountableConnectionHelper
Instance Method Details
#count(limit:) ⇒ Object
18 19 20 |
# File 'app/graphql/types/limited_countable_connection_type.rb', line 18 def count(limit:) limited_count(object.items, limit) end |