2023-05-27 22:25:52 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module Mutations
|
|
|
|
module Members
|
|
|
|
module Projects
|
|
|
|
class BulkUpdate < BulkUpdateBase
|
|
|
|
graphql_name 'ProjectMemberBulkUpdate'
|
2023-06-20 00:43:36 +05:30
|
|
|
description 'Updates multiple members of a project. ' \
|
|
|
|
'To use this mutation, you must have at least the Maintainer role.'
|
|
|
|
|
2023-05-27 22:25:52 +05:30
|
|
|
authorize :admin_project_member
|
|
|
|
|
|
|
|
field :project_members,
|
|
|
|
[Types::ProjectMemberType],
|
|
|
|
null: true,
|
|
|
|
description: 'Project members after mutation.'
|
|
|
|
|
|
|
|
argument :project_id,
|
|
|
|
::Types::GlobalIDType[::Project],
|
|
|
|
required: true,
|
|
|
|
description: 'Global ID of the project.'
|
|
|
|
|
|
|
|
def source_type
|
|
|
|
::Project
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|