summaryrefslogtreecommitdiff
path: root/app/graphql/types/issue_connection_type.rb
blob: beed392f01abe6a75fc6a61a62a37712e85eb1c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# 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