Added new recentComments, recentReplies

This commit is contained in:
Wyatt Johnson
2017-02-06 12:54:55 -07:00
parent adae7aadf3
commit 7bef103217
4 changed files with 105 additions and 1 deletions
+6
View File
@@ -77,6 +77,9 @@ type Comment {
# the user who authored the comment.
user: User
# the recent replies made against this comment.
recentReplies: [Comment]
# the replies that were made to the comment.
replies(sort: SORT_ORDER = CHRONOLOGICAL, limit: Int = 3): [Comment]
@@ -153,6 +156,9 @@ type Asset {
# The URL that the asset is locaed on.
url: String
# Returns recent comments
recentComments: [Comment]
# The top level comments that are attached to the asset.
comments(sort: SORT_ORDER = REVERSE_CHRONOLOGICAL, limit: Int = 10): [Comment]