@@ -4,6 +4,12 @@ schema {
4
4
mutation : Mutation
5
5
}
6
6
scalar Time
7
+
8
+ enum SortOrder {
9
+ asc ,
10
+ desc ,
11
+ }
12
+
7
13
type Query {
8
14
viewer : User
9
15
@@ -12,7 +18,8 @@ type Query {
12
18
# The ID of an object
13
19
id : ID !
14
20
): Node
15
- feeds (first : Int , last : Int , after : String , before : String ): StoriesConnection !
21
+ feeds (first : Int , last : Int , after : String , before : String , sortBy : String , sortOrder : SortOrder ): StoriesConnection !
22
+ user (handle : String ): User !
16
23
}
17
24
18
25
interface Node {
@@ -39,19 +46,23 @@ type Badge implements Node {
39
46
type BadgesConnection {
40
47
edges : [BadgeEdge ]!
41
48
pageInfo : PageInfo !
49
+ totalCount : Int !
42
50
}
43
51
44
52
type BadgeEdge {
45
53
node : Badge !
46
54
cursor : String !
55
+ }
56
+
57
+ enum BadgeSortBy {
58
+ time_created ,
47
59
}
48
60
49
61
type Comment implements Node {
50
62
abstractContent : String !
51
63
contentJson : String !
52
64
createdBy : User !
53
65
id : ID !
54
- reactions (first : Int , last : Int , after : String , before : String ): ReactionsConnection !
55
66
timeCreated : Time !
56
67
timeUpdated : Time !
57
68
}
@@ -68,11 +79,17 @@ input UpdateCommentInput {
68
79
type CommentsConnection {
69
80
edges : [CommentEdge ]!
70
81
pageInfo : PageInfo !
82
+ totalCount : Int !
83
+ hasViewerAssociation : Boolean !
71
84
}
72
85
73
86
type CommentEdge {
74
87
node : Comment !
75
88
cursor : String !
89
+ }
90
+
91
+ enum CommentSortBy {
92
+ time_created ,
76
93
}
77
94
78
95
type GitContributionStats {
@@ -101,11 +118,16 @@ type Issue implements Node {
101
118
type IssuesConnection {
102
119
edges : [IssueEdge ]!
103
120
pageInfo : PageInfo !
121
+ totalCount : Int !
104
122
}
105
123
106
124
type IssueEdge {
107
125
node : Issue !
108
126
cursor : String !
127
+ }
128
+
129
+ enum IssueSortBy {
130
+ time_created ,
109
131
}
110
132
111
133
type Reaction implements Node {
@@ -116,7 +138,6 @@ type Reaction implements Node {
116
138
}
117
139
118
140
input ReactionInput {
119
- commentID : ID !
120
141
storyID : ID !
121
142
}
122
143
input UpdateReactionInput {
@@ -126,11 +147,17 @@ input UpdateReactionInput {
126
147
type ReactionsConnection {
127
148
edges : [ReactionEdge ]!
128
149
pageInfo : PageInfo !
150
+ totalCount : Int !
151
+ hasViewerAssociation : Boolean !
129
152
}
130
153
131
154
type ReactionEdge {
132
155
node : Reaction !
133
156
cursor : String !
157
+ }
158
+
159
+ enum ReactionSortBy {
160
+ time_created ,
134
161
}
135
162
136
163
type Reputation {
@@ -143,11 +170,11 @@ input ReputationInput {
143
170
144
171
type Story implements Node {
145
172
abstractContent : String !
146
- comments (first : Int , last : Int , after : String , before : String ): CommentsConnection !
173
+ comments (first : Int , last : Int , after : String , before : String , sortBy : String , sortOrder : SortOrder ): CommentsConnection !
147
174
contentJson : String !
148
175
createdBy : User !
149
176
id : ID !
150
- reactions (first : Int , last : Int , after : String , before : String ): ReactionsConnection !
177
+ reactions (first : Int , last : Int , after : String , before : String , sortBy : String , sortOrder : SortOrder ): ReactionsConnection !
151
178
thumbnail : String !
152
179
timeCreated : Time !
153
180
timeUpdated : Time !
@@ -169,26 +196,32 @@ input UpdateStoryInput {
169
196
type StoriesConnection {
170
197
edges : [StoryEdge ]!
171
198
pageInfo : PageInfo !
199
+ totalCount : Int !
200
+ hasViewerAssociation : Boolean !
172
201
}
173
202
174
203
type StoryEdge {
175
204
node : Story !
176
205
cursor : String !
206
+ }
207
+
208
+ enum StorySortBy {
209
+ time_created ,
177
210
}
178
211
179
212
type User implements Node {
180
213
avatar : String !
181
- badges (first : Int , last : Int , after : String , before : String ): BadgesConnection !
214
+ badges (first : Int , last : Int , after : String , before : String , sortBy : String , sortOrder : SortOrder ): BadgesConnection !
182
215
bio : String !
183
216
gitContributionStats : GitContributionStats !
184
217
handle : String !
185
218
id : ID !
186
- issuesFromLastRepo (first : Int , last : Int , after : String , before : String ): IssuesConnection !
187
- issuesFromOtherRecentRepos (first : Int , last : Int , after : String , before : String ): IssuesConnection !
219
+ issuesFromLastRepo (first : Int , last : Int , after : String , before : String , sortBy : String , sortOrder : SortOrder ): IssuesConnection !
220
+ issuesFromOtherRecentRepos (first : Int , last : Int , after : String , before : String , sortBy : String , sortOrder : SortOrder ): IssuesConnection !
188
221
name : String !
189
- relevantIssues (first : Int , last : Int , after : String , before : String ): IssuesConnection !
222
+ relevantIssues (first : Int , last : Int , after : String , before : String , sortBy : String , sortOrder : SortOrder ): IssuesConnection !
190
223
reputation : Reputation !
191
- stories (first : Int , last : Int , after : String , before : String ): StoriesConnection !
224
+ stories (first : Int , last : Int , after : String , before : String , sortBy : String , sortOrder : SortOrder ): StoriesConnection !
192
225
timeCreated : Time !
193
226
timeUpdated : Time !
194
227
}
@@ -208,6 +241,21 @@ input UpdateUserInput {
208
241
gitContributionStats : GitContributionStatsInput
209
242
name : String
210
243
reputation : ReputationInput
244
+ }
245
+
246
+ type UsersConnection {
247
+ edges : [UserEdge ]!
248
+ pageInfo : PageInfo !
249
+ totalCount : Int !
250
+ }
251
+
252
+ type UserEdge {
253
+ node : User !
254
+ cursor : String !
255
+ }
256
+
257
+ enum UserSortBy {
258
+ time_created ,
211
259
}
212
260
213
261
type Mutation {
0 commit comments