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

20 lines
790 B
Ruby
Raw Normal View History

2019-02-15 15:39:39 +05:30
# frozen_string_literal: true
module Types
class MilestoneType < BaseObject
graphql_name 'Milestone'
2019-07-07 11:18:12 +05:30
authorize :read_milestone
2019-12-04 20:38:33 +05:30
field :description, GraphQL::STRING_TYPE, null: true # rubocop:disable Graphql/Descriptions
field :title, GraphQL::STRING_TYPE, null: false # rubocop:disable Graphql/Descriptions
field :state, GraphQL::STRING_TYPE, null: false # rubocop:disable Graphql/Descriptions
2019-02-15 15:39:39 +05:30
2019-12-04 20:38:33 +05:30
field :due_date, Types::TimeType, null: true # rubocop:disable Graphql/Descriptions
field :start_date, Types::TimeType, null: true # rubocop:disable Graphql/Descriptions
2019-02-15 15:39:39 +05:30
2019-12-04 20:38:33 +05:30
field :created_at, Types::TimeType, null: false # rubocop:disable Graphql/Descriptions
field :updated_at, Types::TimeType, null: false # rubocop:disable Graphql/Descriptions
2019-02-15 15:39:39 +05:30
end
end