summaryrefslogtreecommitdiff
path: root/app/graphql/types/work_items/widgets/assignees_input_type.rb
blob: ee61bc73054c89b62f52edafb84d8cb6ed02795f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# frozen_string_literal: true

module Types
  module WorkItems
    module Widgets
      class AssigneesInputType < BaseInputObject
        graphql_name 'WorkItemWidgetAssigneesInput'

        argument :assignee_ids, [::Types::GlobalIDType[::User]],
          required: true,
          description: 'Global IDs of assignees.',
          prepare: ->(ids, _) { ids.map(&:model_id) }
      end
    end
  end
end