feat(profile): add capability to update user's full name

This commit is contained in:
Rıdvan Akca
2023-03-31 12:35:59 +03:00
parent 3e268bf66b
commit 2791dca412
5 changed files with 66 additions and 1 deletions

View File

@@ -4,6 +4,7 @@ type Params = {
input: {
email: string;
password: string;
fullName: string;
};
};
@@ -15,6 +16,7 @@ const updateUser = async (
const user = await context.currentUser.$query().patchAndFetch({
email: params.input.email,
password: params.input.password,
fullName: params.input.fullName,
});
return user;

View File

@@ -351,6 +351,7 @@ input CreateUserInput {
input UpdateUserInput {
email: String
password: String
fullName: String
}
input ForgotPasswordInput {