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

milestone_type.rb « types « graphql « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 9c3afb28674e357e5e9f61f55891f5571275f05f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# frozen_string_literal: true

module Types
  class MilestoneType < BaseObject
    graphql_name 'Milestone'

    authorize :read_milestone

    field :id, GraphQL::ID_TYPE, null: false,
          description: 'ID of the milestone'
    field :description, GraphQL::STRING_TYPE, null: true,
          description: 'Description of the milestone'
    field :title, GraphQL::STRING_TYPE, null: false,
          description: 'Title of the milestone'
    field :state, GraphQL::STRING_TYPE, null: false,
          description: 'State of the milestone'

    field :due_date, Types::TimeType, null: true,
          description: 'Timestamp of the milestone due date'
    field :start_date, Types::TimeType, null: true,
          description: 'Timestamp of the milestone start date'

    field :created_at, Types::TimeType, null: false,
          description: 'Timestamp of milestone creation'
    field :updated_at, Types::TimeType, null: false,
          description: 'Timestamp of last milestone update'
  end
end