mirror of
https://github.com/wassname/talk.git
synced 2026-09-09 11:38:08 +08:00
Added new recentComments, recentReplies
This commit is contained in:
@@ -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]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user