15 lines
358 B
TypeScript
15 lines
358 B
TypeScript
import { gql, useQuery, useMutation } from '@apollo/client';
|
|
|
|
const MUTATION_UPDATE_USER_PROFILE = gql`
|
|
mutation updateUserProfile($changes: ProfileChanges!) {
|
|
updateProfile(changes: $changes) {
|
|
id,
|
|
name,
|
|
createdAt,
|
|
connectedAt,
|
|
}
|
|
}`;
|
|
|
|
export function useUpdateUserProfileMutation() {
|
|
return useMutation(MUTATION_UPDATE_USER_PROFILE);
|
|
} |