summaryrefslogtreecommitdiff
path: root/app/graphql/types/projects/services/jira_project_type.rb
blob: 957ac91db6b5a57895e24d8de7c7bce4e7936162 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# frozen_string_literal: true

module Types
  module Projects
    module Services
      # rubocop:disable Graphql/AuthorizeTypes
      class JiraProjectType < BaseObject
        graphql_name 'JiraProject'

        field :key, GraphQL::Types::String, null: false,
              description: 'Key of the Jira project.'
        field :project_id, GraphQL::Types::Int, null: false,
              description: 'ID of the Jira project.',
              method: :id
        field :name, GraphQL::Types::String, null: true,
              description: 'Name of the Jira project.'
      end
      # rubocop:enable Graphql/AuthorizeTypes
    end
  end
end