2020-07-16 06:09:33 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module Types
|
|
|
|
# rubocop: disable Graphql/AuthorizeTypes
|
2020-08-06 18:09:41 +00:00
|
|
|
class IssuableConnectionType < GraphQL::Types::Relay::BaseConnection
|
2020-07-16 06:09:33 +00:00
|
|
|
field :count, Integer, null: false,
|
|
|
|
description: 'Total count of collection'
|
|
|
|
|
|
|
|
def count
|
|
|
|
object.items.size
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|