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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
query SearchThreads(
$id: Int
$userId: Int
$replyUserId: Int
$subscribed: Boolean
$categoryId: Int
$mediaCategoryId: Int
$search: String
$sort: [ThreadSort]
$page: Int = 1
$perPage: Int = 20
# Additional filters
$id_in: [Int]
# Extra
$includeBody: Boolean = false
$includeUser: Boolean = false
$includeReplyUser: Boolean = false
$includeCategories: Boolean = false
$includeMediaCategories: Boolean = false
# HTML rendering options
$body_as_html: Boolean = false
) {
Page(page: $page, perPage: $perPage) {
pageInfo {
total
currentPage
lastPage
hasNextPage
perPage
}
threads(
id: $id
userId: $userId
replyUserId: $replyUserId
subscribed: $subscribed
categoryId: $categoryId
mediaCategoryId: $mediaCategoryId
search: $search
sort: $sort
id_in: $id_in
) {
id
title
body(asHtml: $body_as_html) @include(if: $includeBody)
userId
replyUserId
replyCount
viewCount
replyCommentId
repliedAt
createdAt
updatedAt
isLocked
isSticky
isSubscribed
likeCount
isLiked
siteUrl
categories @include(if: $includeCategories) {
id
name
}
mediaCategories @include(if: $includeMediaCategories) {
id
title {
romaji
english
native
userPreferred
}
type
format
coverImage {
medium
}
}
user @include(if: $includeUser) {
id
name
avatar {
large
medium
}
donatorTier
donatorBadge
moderatorRoles
}
replyUser @include(if: $includeReplyUser) {
id
name
avatar {
large
medium
}
donatorTier
donatorBadge
moderatorRoles
}
}
}
}