2023-03-17 16:20:25 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module Mutations
|
|
|
|
module Members
|
|
|
|
module Groups
|
2023-05-27 22:25:52 +05:30
|
|
|
class BulkUpdate < BulkUpdateBase
|
2023-03-17 16:20:25 +05:30
|
|
|
graphql_name 'GroupMemberBulkUpdate'
|
|
|
|
authorize :admin_group_member
|
|
|
|
|
|
|
|
field :group_members,
|
2023-05-27 22:25:52 +05:30
|
|
|
[Types::GroupMemberType],
|
|
|
|
null: true,
|
|
|
|
description: 'Group members after mutation.'
|
2023-03-17 16:20:25 +05:30
|
|
|
|
|
|
|
argument :group_id,
|
2023-05-27 22:25:52 +05:30
|
|
|
::Types::GlobalIDType[::Group],
|
|
|
|
required: true,
|
|
|
|
description: 'Global ID of the group.'
|
2023-03-17 16:20:25 +05:30
|
|
|
|
2023-05-27 22:25:52 +05:30
|
|
|
def source_type
|
|
|
|
::Group
|
2023-03-17 16:20:25 +05:30
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|