15 lines
338 B
TypeScript
15 lines
338 B
TypeScript
|
import { gql, useMutation } from '@apollo/client';
|
||
|
|
||
|
export const MUTATION_UPDATE_USER = gql`
|
||
|
mutation updateUser($id: ID!, $changes: UserChanges!) {
|
||
|
updateUser(id: $id, changes: $changes) {
|
||
|
id,
|
||
|
name,
|
||
|
createdAt,
|
||
|
connectedAt,
|
||
|
}
|
||
|
}`;
|
||
|
|
||
|
export function useUpdateUserMutation() {
|
||
|
return useMutation(MUTATION_UPDATE_USER);
|
||
|
}
|