Allow to update a member role
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
@@ -81,6 +81,15 @@ export const GROUP_MEMBERS = gql`
|
||||
}
|
||||
`;
|
||||
|
||||
export const UPDATE_MEMBER = gql`
|
||||
mutation UpdateMember($memberId: ID!, $role: MemberRoleEnum!) {
|
||||
updateMember(memberId: $memberId, role: $role) {
|
||||
id
|
||||
role
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
export const REMOVE_MEMBER = gql`
|
||||
mutation RemoveMember($groupId: ID!, $memberId: ID!) {
|
||||
removeMember(groupId: $groupId, memberId: $memberId) {
|
||||
|
||||
Reference in New Issue
Block a user