summaryrefslogtreecommitdiff
path: root/app/graphql/mutations/boards/common_mutation_arguments.rb
blob: c4f8d29931859a42cf90adba7c35c7c873c5ce59 (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
# frozen_string_literal: true

module Mutations
  module Boards
    module CommonMutationArguments
      extend ActiveSupport::Concern

      included do
        argument :name,
                 GraphQL::STRING_TYPE,
                 required: false,
                 description: 'The board name.'
        argument :hide_backlog_list,
                 GraphQL::BOOLEAN_TYPE,
                 required: false,
                 description: copy_field_description(Types::BoardType, :hide_backlog_list)
        argument :hide_closed_list,
                 GraphQL::BOOLEAN_TYPE,
                 required: false,
                 description: copy_field_description(Types::BoardType, :hide_closed_list)
      end
    end
  end
end