Skip to content

Commit 27c3563

Browse files
committed
feat: add update user mutation to GraphQL schema
1 parent f4c0846 commit 27c3563

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

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

0 commit comments

Comments
 (0)