Ocelot-Social/webapp/graphql/CommentMutations.js
2019-07-02 18:18:18 +02:00

25 lines
441 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
}
}
`,
}
}