feat: admin group edit / assign / unassign

This commit is contained in:
NGPixel
2018-05-12 16:13:04 -04:00
parent ba6b4bc4dd
commit dc09d00875
17 changed files with 697 additions and 300 deletions

View File

@@ -0,0 +1,12 @@
mutation ($groupId: Int!, $userId: Int!) {
groups {
assignUser(groupId: $groupId, userId: $userId) {
responseResult {
succeeded
errorCode
slug
message
}
}
}
}

View File

@@ -0,0 +1,12 @@
mutation ($groupId: Int!, $userId: Int!) {
groups {
unassignUser(groupId: $groupId, userId: $userId) {
responseResult {
succeeded
errorCode
slug
message
}
}
}
}

View File

@@ -0,0 +1,12 @@
mutation ($id: Int!, $name: String!) {
groups {
update(id: $id, name: $name) {
responseResult {
succeeded
errorCode
slug
message
}
}
}
}

View File

@@ -4,6 +4,7 @@ query ($query: String!) {
id
name
email
provider
}
}
}