From 6a84a020273868431c841099c6916c62d537afc9 Mon Sep 17 00:00:00 2001 From: Moriz Wahl Date: Fri, 3 Mar 2023 17:46:20 +0100 Subject: [PATCH] add remove user from group mutation --- webapp/graphql/groups.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/webapp/graphql/groups.js b/webapp/graphql/groups.js index cf64c21b3..bb5292675 100644 --- a/webapp/graphql/groups.js +++ b/webapp/graphql/groups.js @@ -143,6 +143,19 @@ export const changeGroupMemberRoleMutation = () => { ` } +export const removeUserFromGroupMutation = () => { + return gql` + mutation ($groupId: ID!, $userId: ID!) { + RemoveUserFromGroup(groupId: $groupId, userId: $userId) { + id + name + slug + myRoleInGroup + } + } + ` +} + // ------ queries export const groupQuery = (i18n) => {