Skip to content

Commit f4c0846

Browse files
committed
feat: add create user mutation to GraphQL schema
1 parent ca1ee4f commit f4c0846

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#import "@edition/user/services/fragments/User.basic.fragment.graphql"
2+
mutation create($email: String!, $password: String!, $passwordRepeat: String!, $username: String!, $firstname: String, $lastname: String, $admin: Boolean) {
3+
usersCreate(input: {
4+
email: $email
5+
password: $password
6+
passwordRepeat: $passwordRepeat
7+
username: $username
8+
firstname: $firstname
9+
lastname: $lastname
10+
admin: $admin
11+
}) {
12+
errors {
13+
...on Error {
14+
errorCode,
15+
details {
16+
__typename
17+
}
18+
}
19+
}
20+
user {
21+
...UserBasic
22+
}
23+
}
24+
}

0 commit comments

Comments
 (0)