Ocelot-Social/webapp/graphql/CommentMutations.js
Wolfgang Huß 3b88c47206 Update the contentExcerpt
Co-Authored-By: mattwr18 <mattwr18@gmail.com>
2019-07-16 15:48:38 +02:00

34 lines
645 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
}
}
`,
UpdateComment: gql`
mutation($content: String!, $id: ID!) {
UpdateComment(content: $content, id: $id) {
id
content
contentExcerpt
}
}
`,
}
}