debian-mirror-gitlab/app/graphql/types/work_items/widgets/assignees_input_type.rb
2022-08-27 11:52:29 +05:30

16 lines
408 B
Ruby

# 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