Welcome to mirror list, hosted at ThFree Co, Russian Federation.

assignees_input_type.rb « widgets « work_items « types « graphql « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
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