Make comments query optional

This commit is contained in:
Chi Vinh Le
2017-08-24 20:07:45 +07:00
parent acf792089d
commit ca31dedca8
+2 -2
View File
@@ -334,7 +334,7 @@ type Comment {
user: User
# the replies that were made to the comment.
replies(query: RepliesQuery!): CommentConnection!
replies(query: RepliesQuery = {}): CommentConnection!
# The count of replies on a comment.
replyCount: Int
@@ -591,7 +591,7 @@ type Asset {
# The comments that are attached to the asset. When `deep` is true, the
# comments returned will be at all depths.
comments(query: CommentsQuery!, deep: Boolean = false): CommentConnection!
comments(query: CommentsQuery = {}, deep: Boolean = false): CommentConnection!
# A Comment from the Asset by comment's ID
comment(id: ID!): Comment