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 WorkItems
module SharedFilterArguments
extend ActiveSupport::Concern
included do
argument :author_username,
GraphQL::Types::String,
required: false,
description: 'Filter work items by author username.',
alpha: { milestone: '15.9' }
argument :iids,
[GraphQL::Types::String],
required: false,
description: 'List of IIDs of work items. For example, `["1", "2"]`.'
argument :state,
Types::IssuableStateEnum,
required: false,
description: 'Current state of the work item.'
argument :types,
[Types::IssueTypeEnum],
as: :issue_types,
description: 'Filter work items by the given work item types.',
required: false
end
end
end
|