-
Notifications
You must be signed in to change notification settings - Fork 0
/
introspection.schema.graphql
307 lines (263 loc) · 4.73 KB
/
introspection.schema.graphql
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
type Address {
street: String
suite: String
city: String
zipcode: String
geo: Geo
}
input AddressInput {
street: String
suite: String
city: String
zipcode: String
geo: GeoInput
}
type Album {
id: ID
title: String
user: User
photos(options: PageQueryOptions): PhotosPage
}
type AlbumsPage {
data: [Album]
links: PaginationLinks
meta: PageMetadata
}
enum CacheControlScope {
PUBLIC
PRIVATE
}
type Comment {
id: ID
name: String
email: String
body: String
post: Post
}
type CommentsPage {
data: [Comment]
links: PaginationLinks
meta: PageMetadata
}
type Company {
name: String
catchPhrase: String
bs: String
}
input CompanyInput {
name: String
catchPhrase: String
bs: String
}
input CreateAlbumInput {
title: String!
userId: ID!
}
input CreateCommentInput {
name: String!
email: String!
body: String!
}
input CreatePhotoInput {
title: String!
url: String!
thumbnailUrl: String!
}
input CreatePostInput {
title: String!
body: String!
}
input CreateTodoInput {
title: String!
completed: Boolean!
}
input CreateUserInput {
name: String!
username: String!
email: String!
address: AddressInput
phone: String
website: String
company: CompanyInput
}
type Geo {
lat: Float
lng: Float
}
input GeoInput {
lat: Float
lng: Float
}
type Mutation {
_: Int
createAlbum(input: CreateAlbumInput!): Album
updateAlbum(id: ID!, input: UpdateAlbumInput!): Album
deleteAlbum(id: ID!): Boolean
createComment(input: CreateCommentInput!): Comment
updateComment(id: ID!, input: UpdateCommentInput!): Comment
deleteComment(id: ID!): Boolean
createPhoto(input: CreatePhotoInput!): Photo
updatePhoto(id: ID!, input: UpdatePhotoInput!): Photo
deletePhoto(id: ID!): Boolean
createPost(input: CreatePostInput!): Post
updatePost(id: ID!, input: UpdatePostInput!): Post
deletePost(id: ID!): Boolean
createTodo(input: CreateTodoInput!): Todo
updateTodo(id: ID!, input: UpdateTodoInput!): Todo
deleteTodo(id: ID!): Boolean
createUser(input: CreateUserInput!): User
updateUser(id: ID!, input: UpdateUserInput!): User
deleteUser(id: ID!): Boolean
}
enum OperatorKindEnum {
GTE
LTE
NE
LIKE
}
input OperatorOptions {
kind: OperatorKindEnum
field: String
value: String
}
type PageLimitPair {
page: Int
limit: Int
}
type PageMetadata {
totalCount: Int
}
input PageQueryOptions {
paginate: PaginateOptions
slice: SliceOptions
sort: [SortOptions]
operators: [OperatorOptions]
search: SearchOptions
}
input PaginateOptions {
page: Int
limit: Int
}
type PaginationLinks {
first: PageLimitPair
prev: PageLimitPair
next: PageLimitPair
last: PageLimitPair
}
type Photo {
id: ID
title: String
url: String
thumbnailUrl: String
album: Album
}
type PhotosPage {
data: [Photo]
links: PaginationLinks
meta: PageMetadata
}
type Post {
id: ID
title: String
body: String
user: User
comments(options: PageQueryOptions): CommentsPage
}
type PostsPage {
data: [Post]
links: PaginationLinks
meta: PageMetadata
}
type Query {
_: Int
albums(options: PageQueryOptions): AlbumsPage
album(id: ID!): Album
comments(options: PageQueryOptions): CommentsPage
comment(id: ID!): Comment
photos(options: PageQueryOptions): PhotosPage
photo(id: ID!): Photo
posts(options: PageQueryOptions): PostsPage
post(id: ID!): Post
todos(options: PageQueryOptions): TodosPage
todo(id: ID!): Todo
users(options: PageQueryOptions): UsersPage
user(id: ID!): User
}
input SearchOptions {
q: String
}
input SliceOptions {
start: Int
end: Int
limit: Int
}
input SortOptions {
field: String
order: SortOrderEnum
}
enum SortOrderEnum {
ASC
DESC
}
type Todo {
id: ID
title: String
completed: Boolean
user(id: String): User
}
type TodosPage {
data: [Todo]
links: PaginationLinks
meta: PageMetadata
}
input UpdateAlbumInput {
title: String
userId: ID
}
input UpdateCommentInput {
name: String
email: String
body: String
}
input UpdatePhotoInput {
title: String
url: String
thumbnailUrl: String
}
input UpdatePostInput {
title: String
body: String
}
input UpdateTodoInput {
title: String
completed: Boolean
}
input UpdateUserInput {
name: String
username: String
email: String
address: AddressInput
phone: String
website: String
company: CompanyInput
}
# The `Upload` scalar type represents a file upload.
scalar Upload
type User {
id: ID
name: String
username: String
email: String
address: Address
phone: String
website: String
company: Company
posts(options: PageQueryOptions): PostsPage
albums(options: PageQueryOptions): AlbumsPage
todos(options: PageQueryOptions): TodosPage
}
type UsersPage {
data: [User]
links: PaginationLinks
meta: PageMetadata
}