createCommentInput

This commit is contained in:
Belen Curcio
2017-04-12 16:23:13 -03:00
parent e256c4a014
commit 336dd261ca
4 changed files with 32 additions and 7 deletions
+24 -1
View File
@@ -593,6 +593,29 @@ input CreateLikeInput {
item_type: ACTION_ITEM_TYPE!
}
enum TAG {
STAFF
OFF_TOPIC
}
input CreateCommentInput {
# The asset id
asset_id: ID!
# The id of the parent comment
parent_id: ID
# The body of the comment
body: String!
# Tags
tags: [TAG]
}
type CreateLikeResponse implements Response {
# The like that was created.
@@ -707,7 +730,7 @@ type RemoveCommentTagResponse implements Response {
type RootMutation {
# Creates a comment on the asset.
createComment(asset_id: ID!, parent_id: ID, body: String!): CreateCommentResponse
createComment(comment: CreateCommentInput!): CreateCommentResponse
# Creates a like on an entity.
createLike(like: CreateLikeInput!): CreateLikeResponse