debian-mirror-gitlab/app/graphql/types/issue_connection_type.rb
2020-08-09 17:44:08 +05:30

14 lines
304 B
Ruby

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