Welcome to mirror list, hosted at ThFree Co, Russian Federation.

issue_connection_type.rb « types « graphql « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
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