gitlab-org--gitlab-foss/app/graphql/types/issuable_connection_type.rb

14 lines
307 B
Ruby
Raw Normal View History

# frozen_string_literal: true
module Types
# rubocop: disable Graphql/AuthorizeTypes
class IssuableConnectionType < GraphQL::Types::Relay::BaseConnection
field :count, Integer, null: false,
description: 'Total count of collection'
def count
object.items.size
end
end
end