Files
talk/client/coral-embed-stream/src/graphql/mutations/postComment.graphql
T
2017-01-20 18:56:42 -03:00

24 lines
413 B
GraphQL

fragment commentView on Comment {
id
body
status
user {
name: displayName
}
actions {
type: action_type
count
current: current_user {
id
created_at
}
}
}
mutation CreateComment ($asset_id: ID!, $parent_id: ID, $body: String!) {
createComment(asset_id:$asset_id, parent_id:$parent_id, body:$body) {
...commentView
}
}