webapp/src/graphql/mutation/article-create.ts
2022-11-10 16:00:38 +01:00

29 lines
454 B
TypeScript

import { gql } from '@urql/core'
export default gql`
mutation CreateShoutMutation($shout: ShoutInput!) {
createShout(input: $shout) {
error
shout {
_id: slug
slug
title
subtitle
body
topics {
_id: slug
title
slug
}
authors {
_id: slug
name
slug
userpic
caption
}
}
}
}
`