summaryrefslogtreecommitdiff
path: root/app/graphql/types/milestone_type.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/graphql/types/milestone_type.rb')
-rw-r--r--app/graphql/types/milestone_type.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/graphql/types/milestone_type.rb b/app/graphql/types/milestone_type.rb
index eafede26c9e..27bc77b4da1 100644
--- a/app/graphql/types/milestone_type.rb
+++ b/app/graphql/types/milestone_type.rb
@@ -26,6 +26,9 @@ module Types
field :state, Types::MilestoneStateEnum, null: false,
description: 'State of the milestone.'
+ field :expired, GraphQL::BOOLEAN_TYPE, null: false,
+ description: 'Expired state of the milestone (a milestone is expired when the due date is past the current date). Defaults to `false` when due date has not been set.'
+
field :web_path, GraphQL::STRING_TYPE, null: false, method: :milestone_path,
description: 'Web path of the milestone.'