28 lines
635 B
TypeScript
28 lines
635 B
TypeScript
import { graphql } from '~~/lib/common/generated/gql'
|
|
|
|
export const updateUserMutation = graphql(`
|
|
mutation UpdateUser($input: UserUpdateInput!) {
|
|
activeUserMutations {
|
|
update(user: $input) {
|
|
id
|
|
name
|
|
bio
|
|
company
|
|
avatar
|
|
}
|
|
}
|
|
}
|
|
`)
|
|
|
|
export const updateNotificationPreferencesMutation = graphql(`
|
|
mutation UpdateNotificationPreferences($input: JSONObject!) {
|
|
userNotificationPreferencesUpdate(preferences: $input)
|
|
}
|
|
`)
|
|
|
|
export const deleteAccountMutation = graphql(`
|
|
mutation DeleteAccount($input: UserDeleteInput!) {
|
|
userDelete(userConfirmation: $input)
|
|
}
|
|
`)
|