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

18 lines
363 B
TypeScript
Raw Normal View History

2022-09-09 11:53:35 +00:00
import { gql } from '@urql/core'
export default gql`
2023-05-08 17:21:06 +00:00
mutation UpdateShoutMutation($shoutId: Int!, $shoutInput: ShoutInput, $publish: Boolean) {
updateShout(shout_id: $shoutId, shout_input: $shoutInput, publish: $publish) {
2022-09-09 11:53:35 +00:00
error
shout {
2023-04-20 13:58:56 +00:00
id
2022-09-09 11:53:35 +00:00
slug
title
subtitle
body
2023-05-08 17:21:06 +00:00
visibility
2022-09-09 11:53:35 +00:00
}
}
}
`