Ocelot-Social/webapp/graphql/CommentMutations.js
2019-07-03 10:06:48 +02:00

25 lines
442 B
JavaScript

import gql from 'graphql-tag'
export default () => {
return {
CreateComment: gql`
mutation($postId: ID!, $content: String!) {
CreateComment(postId: $postId, content: $content) {
id
contentExcerpt
content
author {
id
slug
name
avatar
}
createdAt
deleted
disabled
}
}
`,
}
}