File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ type Mutation {
38
38
updateUser (user : UpdateUserInput ): User
39
39
}
40
40
41
- # 通用排序方式;按创建时间或按更新时间
41
+ # 通用排序方式;按创建时间或按更新时间;必须成对出现
42
42
enum Order {
43
43
createdAsc
44
44
createdDesc
@@ -66,6 +66,7 @@ type Post {
66
66
referencesBy : [Post ]!
67
67
referencesTo : [Post ]!
68
68
comments (first : Int , after : ID , order : Order ): Comments
69
+ commentCount : Int !
69
70
files : [File ]!
70
71
createdAt : Date !
71
72
updatedAt : Date
@@ -74,13 +75,12 @@ type Post {
74
75
75
76
type PostEdge {
76
77
node : Post !
77
- cursor : ID !
78
+ cursor : String !
78
79
}
79
80
80
81
type Posts {
81
82
edges : [PostEdge ]!
82
83
pageInfo : PageInfo !
83
- count : Int !
84
84
}
85
85
86
86
# 回贴 or 修改
@@ -100,20 +100,20 @@ type Topic {
100
100
rootPost : Post !
101
101
lastPost : Post !
102
102
posts (first : Int , after : ID , order : Order ): Posts !
103
+ postCount : Int !
103
104
createdAt : Date !
104
105
updatedAt : Date
105
106
deletedAt : Date
106
107
}
107
108
108
109
type TopicEdge {
109
110
node : Topic !
110
- cursor : ID !
111
+ cursor : String !
111
112
}
112
113
113
114
type Topics {
114
115
edges : [TopicEdge ]!
115
116
pageInfo : PageInfo !
116
- count : Int !
117
117
}
118
118
119
119
# 发主题 / 修改主题
@@ -136,13 +136,12 @@ type Comment {
136
136
137
137
type CommentEdge {
138
138
node : Comment !
139
- cursor : ID !
139
+ cursor : String !
140
140
}
141
141
142
142
type Comments {
143
143
edges : [CommentEdge ]!
144
144
pageInfo : PageInfo !
145
- count : Int !
146
145
}
147
146
148
147
# 发楼中楼 / 修改楼中楼
@@ -193,6 +192,7 @@ type Board {
193
192
theme : String
194
193
description : String
195
194
topics (first : Int , after : ID , order : Order ): Topics !
195
+ topicCount : Int
196
196
}
197
197
198
198
# --- 用户 ---
You can’t perform that action at this time.
0 commit comments