1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
query FetchThreadComments(
$threadId: Int
$id: Int
$userId: Int
$sort: [ThreadCommentSort]
$page: Int = 1
$perPage: Int = 25
# HTML rendering options
$comment_as_html: Boolean = false
) {
Page(page: $page, perPage: $perPage) {
pageInfo {
total
currentPage
lastPage
hasNextPage
perPage
}
threadComments(
threadId: $threadId
id: $id
userId: $userId
sort: $sort
) {
id
threadId
userId
comment(asHtml: $comment_as_html)
likeCount
isLiked
siteUrl
createdAt
updatedAt
isLocked
user {
id
name
avatar {
large
medium
}
donatorTier
donatorBadge
moderatorRoles
}
likes {
id
name
avatar {
medium
}
}
childComments
}
}
}