feat: make email and password updatable

This commit is contained in:
Ali BARIN
2022-04-01 00:38:54 +03:00
committed by Ömer Faruk Aydın
parent b8fb84ef42
commit bb6c464770
8 changed files with 202 additions and 42 deletions
@@ -0,0 +1,11 @@
import { gql } from '@apollo/client';
export const UPDATE_USER = gql`
mutation UpdateUser($input: UpdateUserInput) {
updateUser(input: $input) {
id
email
updatedAt
}
}
`;
@@ -0,0 +1,12 @@
import { gql } from '@apollo/client';
export const GET_CURRENT_USER = gql`
query GetCurrentUser {
getCurrentUser {
id
email
createdAt
updatedAt
}
}
`;