gitlab-org--gitlab-foss/app/graphql/resolvers/issue_status_counts_resolver.rb

17 lines
391 B
Ruby
Raw Normal View History

# 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