arch: move web folder into api & move api to top level
This commit is contained in:
40
frontend/src/shared/graphql/user/createUser.ts
Normal file
40
frontend/src/shared/graphql/user/createUser.ts
Normal file
@ -0,0 +1,40 @@
|
||||
import gql from 'graphql-tag';
|
||||
|
||||
export const CREATE_USER_MUTATION = gql`
|
||||
mutation createUserAccount(
|
||||
$username: String!
|
||||
$roleCode: String!
|
||||
$email: String!
|
||||
$fullName: String!
|
||||
$initials: String!
|
||||
$password: String!
|
||||
) {
|
||||
createUserAccount(
|
||||
input: {
|
||||
roleCode: $roleCode
|
||||
username: $username
|
||||
email: $email
|
||||
fullName: $fullName
|
||||
initials: $initials
|
||||
password: $password
|
||||
}
|
||||
) {
|
||||
id
|
||||
email
|
||||
fullName
|
||||
initials
|
||||
username
|
||||
profileIcon {
|
||||
url
|
||||
initials
|
||||
bgColor
|
||||
}
|
||||
role {
|
||||
code
|
||||
name
|
||||
}
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
export default CREATE_USER_MUTATION;
|
Reference in New Issue
Block a user