feat: refactor update-current-user mutation with the REST API endpoint

This commit is contained in:
kasia.oczkowska
2024-09-27 11:48:59 +01:00
parent 5769c82fca
commit d3caadf4af
9 changed files with 180 additions and 77 deletions

View File

@@ -1,11 +0,0 @@
const updateCurrentUser = async (_parent, params, context) => {
const user = await context.currentUser.$query().patchAndFetch({
email: params.input.email,
password: params.input.password,
fullName: params.input.fullName,
});
return user;
};
export default updateCurrentUser;