webapp/src/graphql/mutation/core/article-update.ts
2024-02-02 20:44:48 +03:00

23 lines
457 B
TypeScript

import { gql } from '@urql/core'
export default gql`
mutation UpdateShoutMutation($shoutId: Int!, $shoutInput: ShoutInput, $publish: Boolean) {
update_shout(shout_id: $shoutId, shout_input: $shoutInput, publish: $publish) {
error
shout {
id
slug
title
subtitle
lead
description
body
created_at
updated_at
published_at
featured_at
}
}
}
`