webapp/src/graphql/mutation/update-profile.ts
2022-12-01 20:16:14 +03:00

18 lines
297 B
TypeScript

import { gql } from '@urql/core'
// WARNING: need Auth header
export default gql`
mutation ProfileUpdateMutation($profile: ProfileInput!) {
updateProfile(profile: $profile) {
error
author {
name
slug
userpic
bio
links
}
}
}
`