feat: admin group edit / assign / unassign
This commit is contained in:
12
client/graph/admin-groups-mutation-assign.gql
Normal file
12
client/graph/admin-groups-mutation-assign.gql
Normal file
@@ -0,0 +1,12 @@
|
||||
mutation ($groupId: Int!, $userId: Int!) {
|
||||
groups {
|
||||
assignUser(groupId: $groupId, userId: $userId) {
|
||||
responseResult {
|
||||
succeeded
|
||||
errorCode
|
||||
slug
|
||||
message
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
12
client/graph/admin-groups-mutation-unassign.gql
Normal file
12
client/graph/admin-groups-mutation-unassign.gql
Normal file
@@ -0,0 +1,12 @@
|
||||
mutation ($groupId: Int!, $userId: Int!) {
|
||||
groups {
|
||||
unassignUser(groupId: $groupId, userId: $userId) {
|
||||
responseResult {
|
||||
succeeded
|
||||
errorCode
|
||||
slug
|
||||
message
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
12
client/graph/admin-groups-mutation-update.gql
Normal file
12
client/graph/admin-groups-mutation-update.gql
Normal file
@@ -0,0 +1,12 @@
|
||||
mutation ($id: Int!, $name: String!) {
|
||||
groups {
|
||||
update(id: $id, name: $name) {
|
||||
responseResult {
|
||||
succeeded
|
||||
errorCode
|
||||
slug
|
||||
message
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@@ -4,6 +4,7 @@ query ($query: String!) {
|
||||
id
|
||||
name
|
||||
email
|
||||
provider
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user