feature: fix user admin related bugs

This commit is contained in:
Jordan Knott
2020-07-17 21:55:38 -05:00
parent 68fa7aef94
commit e5bfe9b9ab
24 changed files with 373 additions and 162 deletions

View File

@ -33,6 +33,26 @@ export const CREATE_USER_MUTATION = gql`
code
name
}
owned {
teams {
id
name
}
projects {
id
name
}
}
member {
teams {
id
name
}
projects {
id
name
}
}
}
}
`;

View File

@ -1,8 +1,8 @@
import gql from 'graphql-tag';
export const DELETE_USER_MUTATION = gql`
mutation deleteUserAccount($userID: UUID!) {
deleteUserAccount(input: { userID: $userID }) {
mutation deleteUserAccount($userID: UUID!, $newOwnerID: UUID) {
deleteUserAccount(input: { userID: $userID, newOwnerID: $newOwnerID }) {
ok
userAccount {
id