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

29 lines
454 B
TypeScript
Raw Normal View History

2022-09-09 11:53:35 +00:00
import { gql } from '@urql/core'
export default gql`
2022-10-31 15:13:11 +00:00
mutation CreateShoutMutation($shout: ShoutInput!) {
2022-10-23 14:16:42 +00:00
createShout(input: $shout) {
2022-09-09 11:53:35 +00:00
error
shout {
_id: slug
slug
title
subtitle
body
topics {
_id: slug
title
slug
}
authors {
_id: slug
name
slug
userpic
caption
}
}
}
}
`