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

issue_status_counts_resolver.rb « resolvers « graphql « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 58cff559d0d398ee96db7a6ca562c287ca8c2be4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# frozen_string_literal: true

module Resolvers
  class IssueStatusCountsResolver < BaseResolver
    prepend IssueResolverArguments

    type Types::IssueStatusCountsType, null: true

    extras [:lookahead]

    def continue_issue_resolve(parent, finder, **args)
      finder.parent_param = parent
      apply_lookahead(Gitlab::IssuablesCountForState.new(finder, parent))
    end
  end
end