webapp/src/graphql/mutation/update-profile.ts

18 lines
297 B
TypeScript
Raw Normal View History

2022-09-09 11:53:35 +00:00
import { gql } from '@urql/core'
// WARNING: need Auth header
export default gql`
2022-12-01 17:16:14 +00:00
mutation ProfileUpdateMutation($profile: ProfileInput!) {
updateProfile(profile: $profile) {
2022-09-09 11:53:35 +00:00
error
2022-12-01 17:16:14 +00:00
author {
2022-09-09 11:53:35 +00:00
name
slug
userpic
bio
2022-12-01 17:16:14 +00:00
links
2022-09-09 11:53:35 +00:00
}
}
}
`