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

21 lines
545 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
2022-08-27 11:52:29 +05:30
field :total_issues_count,
GraphQL::Types::Int,
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
2022-08-27 11:52:29 +05:30
field :closed_issues_count,
GraphQL::Types::Int,
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