webapp/src/graphql/mutation/article-update.ts
2022-10-23 17:16:42 +03:00

31 lines
479 B
TypeScript

import { gql } from '@urql/core'
export default gql`
mutation UpdateShoutMutation($shout: Shout!) {
updateShout(input: $shout) {
error
shout {
_id: slug
slug
title
subtitle
image
body
topics {
_id: slug
title
slug
image
}
authors {
_id: slug
name
slug
userpic
caption
}
}
}
}
`