Update graphql types and mutations

This commit is contained in:
Hazem Krimi
2021-05-18 22:38:21 +01:00
parent 05d43a3b31
commit c1c5af43a6
9 changed files with 505 additions and 234 deletions
+3 -17
View File
@@ -95,22 +95,8 @@ export const CONFIRM_USER_RESET_PASSWORD = gql`
`;
export const UPDATE_USER_INFO = gql`
mutation UpdateUserInfo(
$id: String!
$email: String!
$firstName: String!
$lastName: String!
$phone: PhoneInputModel!
$address: AddressInputModel!
) {
updateUserInfo(
id: $id
email: $email
firstName: $firstName
lastName: $lastName
phone: $phone
address: $address
) {
mutation UpdateUserInfo($user: UpdateUserInput!) {
updateUserInfo(user: $user) {
id
email
firstName
@@ -131,7 +117,7 @@ export const UPDATE_USER_INFO = gql`
`;
export const UPDATE_USER_PASSWORD = gql`
mutation UpdateUserPassword($id: String!, $password: PasswordInputModel!) {
mutation UpdateUserPassword($id: String!, $password: PasswordInput!) {
updateUserPassword(id: $id, password: $password) {
id
email