debian-mirror-gitlab/app/graphql/types/milestone_stats_type.rb

17 lines
501 B
Ruby
Raw Normal View History

2020-07-28 23:09:34 +05:30
# frozen_string_literal: true
module Types
class MilestoneStatsType < BaseObject
graphql_name 'MilestoneStats'
description 'Contains statistics about a milestone'
authorize :read_milestone
field :total_issues_count, GraphQL::INT_TYPE, null: true,
2021-03-11 19:13:27 +05:30
description: 'Total number of issues associated with the milestone.'
2020-07-28 23:09:34 +05:30
field :closed_issues_count, GraphQL::INT_TYPE, null: true,
2021-03-11 19:13:27 +05:30
description: 'Number of closed issues associated with the milestone.'
2020-07-28 23:09:34 +05:30
end
end