webapp/src/graphql/mutation/article-update.ts
2023-05-07 17:23:48 +02:00

17 lines
307 B
TypeScript

import { gql } from '@urql/core'
export default gql`
mutation UpdateShoutMutation($shoutId: Int!, $shoutInput: ShoutInput!) {
updateShout(shout_id: $shoutId, shout_input: $shoutInput) {
error
shout {
id
slug
title
subtitle
body
}
}
}
`