webapp/src/graphql/mutation/article-create.ts
2022-12-03 10:15:13 +03:00

29 lines
440 B
TypeScript

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