-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathschema.graphql
521 lines (459 loc) · 10.2 KB
/
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
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
input UserRelateToOneInput {
create: UserCreateInput
connect: UserWhereUniqueInput
disconnect: UserWhereUniqueInput
disconnectAll: Boolean
}
"""
A keystone list
"""
type Todo {
id: ID!
label: String
isComplete: Boolean
assignedTo: User
}
input TodoWhereInput {
AND: [TodoWhereInput!]
OR: [TodoWhereInput!]
id: ID
id_not: ID
id_lt: ID
id_lte: ID
id_gt: ID
id_gte: ID
id_in: [ID]
id_not_in: [ID]
label: String
label_not: String
label_contains: String
label_not_contains: String
label_starts_with: String
label_not_starts_with: String
label_ends_with: String
label_not_ends_with: String
label_i: String
label_not_i: String
label_contains_i: String
label_not_contains_i: String
label_starts_with_i: String
label_not_starts_with_i: String
label_ends_with_i: String
label_not_ends_with_i: String
label_in: [String]
label_not_in: [String]
isComplete: Boolean
isComplete_not: Boolean
assignedTo: UserWhereInput
assignedTo_is_null: Boolean
}
input TodoWhereUniqueInput {
id: ID!
}
enum SortTodosBy {
id_ASC
id_DESC
label_ASC
label_DESC
isComplete_ASC
isComplete_DESC
}
input TodoOrderByInput {
id: OrderDirection
label: OrderDirection
isComplete: OrderDirection
}
enum OrderDirection {
asc
desc
}
input TodoUpdateInput {
label: String
isComplete: Boolean
assignedTo: UserRelateToOneInput
}
input TodosUpdateInput {
id: ID!
data: TodoUpdateInput
}
input TodoCreateInput {
label: String
isComplete: Boolean
assignedTo: UserRelateToOneInput
}
input TodosCreateInput {
data: TodoCreateInput
}
input TodoRelateToManyInput {
create: [TodoCreateInput]
connect: [TodoWhereUniqueInput]
disconnect: [TodoWhereUniqueInput]
disconnectAll: Boolean
}
"""
A keystone list
"""
type User {
id: ID!
name: String
email: String
password_is_set: Boolean
isAdmin: Boolean
todos(
where: TodoWhereInput! = {}
search: String
sortBy: [SortTodosBy!]
@deprecated(reason: "sortBy has been deprecated in favour of orderBy")
orderBy: [TodoOrderByInput!]! = []
first: Int
skip: Int! = 0
): [Todo!]!
_todosMeta(
where: TodoWhereInput! = {}
search: String
sortBy: [SortTodosBy!]
@deprecated(reason: "sortBy has been deprecated in favour of orderBy")
orderBy: [TodoOrderByInput!]! = []
first: Int
skip: Int! = 0
): _QueryMeta
@deprecated(
reason: "This query will be removed in a future version. Please use todosCount instead."
)
todosCount(where: TodoWhereInput! = {}): Int
}
input UserWhereInput {
AND: [UserWhereInput!]
OR: [UserWhereInput!]
id: ID
id_not: ID
id_lt: ID
id_lte: ID
id_gt: ID
id_gte: ID
id_in: [ID]
id_not_in: [ID]
name: String
name_not: String
name_contains: String
name_not_contains: String
name_starts_with: String
name_not_starts_with: String
name_ends_with: String
name_not_ends_with: String
name_i: String
name_not_i: String
name_contains_i: String
name_not_contains_i: String
name_starts_with_i: String
name_not_starts_with_i: String
name_ends_with_i: String
name_not_ends_with_i: String
name_in: [String]
name_not_in: [String]
email: String
email_not: String
email_contains: String
email_not_contains: String
email_starts_with: String
email_not_starts_with: String
email_ends_with: String
email_not_ends_with: String
email_i: String
email_not_i: String
email_contains_i: String
email_not_contains_i: String
email_starts_with_i: String
email_not_starts_with_i: String
email_ends_with_i: String
email_not_ends_with_i: String
email_in: [String]
email_not_in: [String]
password_is_set: Boolean
isAdmin: Boolean
isAdmin_not: Boolean
"""
condition must be true for all nodes
"""
todos_every: TodoWhereInput
"""
condition must be true for at least 1 node
"""
todos_some: TodoWhereInput
"""
condition must be false for all nodes
"""
todos_none: TodoWhereInput
}
input UserWhereUniqueInput {
id: ID!
}
enum SortUsersBy {
id_ASC
id_DESC
name_ASC
name_DESC
email_ASC
email_DESC
isAdmin_ASC
isAdmin_DESC
}
input UserOrderByInput {
id: OrderDirection
name: OrderDirection
email: OrderDirection
isAdmin: OrderDirection
}
input UserUpdateInput {
name: String
email: String
password: String
isAdmin: Boolean
todos: TodoRelateToManyInput
}
input UsersUpdateInput {
id: ID!
data: UserUpdateInput
}
input UserCreateInput {
name: String
email: String
password: String
isAdmin: Boolean
todos: TodoRelateToManyInput
}
input UsersCreateInput {
data: UserCreateInput
}
"""
The `JSON` scalar type represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf).
"""
scalar JSON
@specifiedBy(
url: "http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf"
)
type _QueryMeta {
count: Int
}
type Mutation {
"""
Create a single Todo item.
"""
createTodo(data: TodoCreateInput): Todo
"""
Create multiple Todo items.
"""
createTodos(data: [TodosCreateInput]): [Todo]
"""
Update a single Todo item by ID.
"""
updateTodo(id: ID!, data: TodoUpdateInput): Todo
"""
Update multiple Todo items by ID.
"""
updateTodos(data: [TodosUpdateInput]): [Todo]
"""
Delete a single Todo item by ID.
"""
deleteTodo(id: ID!): Todo
"""
Delete multiple Todo items by ID.
"""
deleteTodos(ids: [ID!]): [Todo]
"""
Create a single User item.
"""
createUser(data: UserCreateInput): User
"""
Create multiple User items.
"""
createUsers(data: [UsersCreateInput]): [User]
"""
Update a single User item by ID.
"""
updateUser(id: ID!, data: UserUpdateInput): User
"""
Update multiple User items by ID.
"""
updateUsers(data: [UsersUpdateInput]): [User]
"""
Delete a single User item by ID.
"""
deleteUser(id: ID!): User
"""
Delete multiple User items by ID.
"""
deleteUsers(ids: [ID!]): [User]
authenticateUserWithPassword(
email: String!
password: String!
): UserAuthenticationWithPasswordResult!
createInitialUser(
data: CreateInitialUserInput!
): UserAuthenticationWithPasswordSuccess!
endSession: Boolean!
}
"""
The `Upload` scalar type represents a file upload.
"""
scalar Upload
union AuthenticatedItem = User
union UserAuthenticationWithPasswordResult =
UserAuthenticationWithPasswordSuccess
| UserAuthenticationWithPasswordFailure
type UserAuthenticationWithPasswordSuccess {
sessionToken: String!
item: User!
}
type UserAuthenticationWithPasswordFailure {
code: PasswordAuthErrorCode!
message: String!
}
enum PasswordAuthErrorCode {
FAILURE
IDENTITY_NOT_FOUND
SECRET_NOT_SET
MULTIPLE_IDENTITY_MATCHES
SECRET_MISMATCH
}
input CreateInitialUserInput {
name: String
email: String
password: String
}
type Query {
"""
Search for all Todo items which match the where clause.
"""
allTodos(
where: TodoWhereInput! = {}
search: String
sortBy: [SortTodosBy!]
@deprecated(reason: "sortBy has been deprecated in favour of orderBy")
orderBy: [TodoOrderByInput!]! = []
first: Int
skip: Int! = 0
): [Todo!]
"""
Search for the Todo item with the matching ID.
"""
Todo(where: TodoWhereUniqueInput!): Todo
"""
Perform a meta-query on all Todo items which match the where clause.
"""
_allTodosMeta(
where: TodoWhereInput! = {}
search: String
sortBy: [SortTodosBy!]
@deprecated(reason: "sortBy has been deprecated in favour of orderBy")
orderBy: [TodoOrderByInput!]! = []
first: Int
skip: Int! = 0
): _QueryMeta
@deprecated(
reason: "This query will be removed in a future version. Please use todosCount instead."
)
todosCount(where: TodoWhereInput! = {}): Int
"""
Search for all User items which match the where clause.
"""
allUsers(
where: UserWhereInput! = {}
search: String
sortBy: [SortUsersBy!]
@deprecated(reason: "sortBy has been deprecated in favour of orderBy")
orderBy: [UserOrderByInput!]! = []
first: Int
skip: Int! = 0
): [User!]
"""
Search for the User item with the matching ID.
"""
User(where: UserWhereUniqueInput!): User
"""
Perform a meta-query on all User items which match the where clause.
"""
_allUsersMeta(
where: UserWhereInput! = {}
search: String
sortBy: [SortUsersBy!]
@deprecated(reason: "sortBy has been deprecated in favour of orderBy")
orderBy: [UserOrderByInput!]! = []
first: Int
skip: Int! = 0
): _QueryMeta
@deprecated(
reason: "This query will be removed in a future version. Please use usersCount instead."
)
usersCount(where: UserWhereInput! = {}): Int
authenticatedItem: AuthenticatedItem
keystone: KeystoneMeta!
}
type KeystoneMeta {
adminMeta: KeystoneAdminMeta!
}
type KeystoneAdminMeta {
enableSignout: Boolean!
enableSessionItem: Boolean!
lists: [KeystoneAdminUIListMeta!]!
list(key: String!): KeystoneAdminUIListMeta
}
type KeystoneAdminUIListMeta {
key: String!
itemQueryName: String!
listQueryName: String!
hideCreate: Boolean!
hideDelete: Boolean!
path: String!
label: String!
singular: String!
plural: String!
description: String
initialColumns: [String!]!
pageSize: Int!
labelField: String!
fields: [KeystoneAdminUIFieldMeta!]!
initialSort: KeystoneAdminUISort
isHidden: Boolean!
}
type KeystoneAdminUIFieldMeta {
path: String!
label: String!
isOrderable: Boolean!
fieldMeta: JSON
viewsIndex: Int!
customViewsIndex: Int
createView: KeystoneAdminUIFieldMetaCreateView!
listView: KeystoneAdminUIFieldMetaListView!
itemView(id: ID!): KeystoneAdminUIFieldMetaItemView
}
type KeystoneAdminUIFieldMetaCreateView {
fieldMode: KeystoneAdminUIFieldMetaCreateViewFieldMode!
}
enum KeystoneAdminUIFieldMetaCreateViewFieldMode {
edit
hidden
}
type KeystoneAdminUIFieldMetaListView {
fieldMode: KeystoneAdminUIFieldMetaListViewFieldMode!
}
enum KeystoneAdminUIFieldMetaListViewFieldMode {
read
hidden
}
type KeystoneAdminUIFieldMetaItemView {
fieldMode: KeystoneAdminUIFieldMetaItemViewFieldMode!
}
enum KeystoneAdminUIFieldMetaItemViewFieldMode {
edit
read
hidden
}
type KeystoneAdminUISort {
field: String!
direction: KeystoneAdminUISortDirection!
}
enum KeystoneAdminUISortDirection {
ASC
DESC
}