feat: make email and password updatable
This commit is contained in:

committed by
Ömer Faruk Aydın

parent
b8fb84ef42
commit
bb6c464770
11
packages/web/src/graphql/mutations/update-user.ts
Normal file
11
packages/web/src/graphql/mutations/update-user.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import { gql } from '@apollo/client';
|
||||
|
||||
export const UPDATE_USER = gql`
|
||||
mutation UpdateUser($input: UpdateUserInput) {
|
||||
updateUser(input: $input) {
|
||||
id
|
||||
email
|
||||
updatedAt
|
||||
}
|
||||
}
|
||||
`;
|
12
packages/web/src/graphql/queries/get-current-user.ts
Normal file
12
packages/web/src/graphql/queries/get-current-user.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import { gql } from '@apollo/client';
|
||||
|
||||
export const GET_CURRENT_USER = gql`
|
||||
query GetCurrentUser {
|
||||
getCurrentUser {
|
||||
id
|
||||
email
|
||||
createdAt
|
||||
updatedAt
|
||||
}
|
||||
}
|
||||
`;
|
Reference in New Issue
Block a user