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

31 lines
485 B
TypeScript
Raw Normal View History

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