-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprisma.graphql
762 lines (688 loc) · 16.9 KB
/
prisma.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
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
# THIS FILE HAS BEEN AUTO-GENERATED BY "PRISMA DEPLOY"
# DO NOT EDIT THIS FILE DIRECTLY
#
# Model Types
#
type Notification implements Node {
id: ID!
createdAt: DateTime!
type: String!
}
type Stat implements Node {
id: ID!
views: Int!
likes: Int!
retweets: Int!
responses: Int!
}
type Tweet implements Node {
id: ID!
body: String!
createdAt: DateTime!
postedBy(where: UserWhereInput): User
stats(where: StatWhereInput): Stat
}
type User implements Node {
id: ID!
username: String!
firstName: String
lastName: String
fullName: String!
email: String!
password: String!
avatar: String
tweets(where: TweetWhereInput, orderBy: TweetOrderByInput, skip: Int, after: String, before: String, first: Int, last: Int): [Tweet!]
}
#
# Other Types
#
type AggregateNotification {
count: Int!
}
type AggregateStat {
count: Int!
}
type AggregateTweet {
count: Int!
}
type AggregateUser {
count: Int!
}
type BatchPayload {
count: Long!
}
scalar DateTime
scalar Long
type Mutation {
createTweet(data: TweetCreateInput!): Tweet!
createUser(data: UserCreateInput!): User!
createStat(data: StatCreateInput!): Stat!
createNotification(data: NotificationCreateInput!): Notification!
updateTweet(data: TweetUpdateInput!, where: TweetWhereUniqueInput!): Tweet
updateUser(data: UserUpdateInput!, where: UserWhereUniqueInput!): User
updateStat(data: StatUpdateInput!, where: StatWhereUniqueInput!): Stat
updateNotification(data: NotificationUpdateInput!, where: NotificationWhereUniqueInput!): Notification
deleteTweet(where: TweetWhereUniqueInput!): Tweet
deleteUser(where: UserWhereUniqueInput!): User
deleteStat(where: StatWhereUniqueInput!): Stat
deleteNotification(where: NotificationWhereUniqueInput!): Notification
upsertTweet(where: TweetWhereUniqueInput!, create: TweetCreateInput!, update: TweetUpdateInput!): Tweet!
upsertUser(where: UserWhereUniqueInput!, create: UserCreateInput!, update: UserUpdateInput!): User!
upsertStat(where: StatWhereUniqueInput!, create: StatCreateInput!, update: StatUpdateInput!): Stat!
upsertNotification(where: NotificationWhereUniqueInput!, create: NotificationCreateInput!, update: NotificationUpdateInput!): Notification!
updateManyTweets(data: TweetUpdateInput!, where: TweetWhereInput!): BatchPayload!
updateManyUsers(data: UserUpdateInput!, where: UserWhereInput!): BatchPayload!
updateManyStats(data: StatUpdateInput!, where: StatWhereInput!): BatchPayload!
updateManyNotifications(data: NotificationUpdateInput!, where: NotificationWhereInput!): BatchPayload!
deleteManyTweets(where: TweetWhereInput!): BatchPayload!
deleteManyUsers(where: UserWhereInput!): BatchPayload!
deleteManyStats(where: StatWhereInput!): BatchPayload!
deleteManyNotifications(where: NotificationWhereInput!): BatchPayload!
}
enum MutationType {
CREATED
UPDATED
DELETED
}
interface Node {
id: ID!
}
type NotificationConnection {
pageInfo: PageInfo!
edges: [NotificationEdge]!
aggregate: AggregateNotification!
}
input NotificationCreateInput {
type: String!
}
type NotificationEdge {
node: Notification!
cursor: String!
}
enum NotificationOrderByInput {
id_ASC
id_DESC
createdAt_ASC
createdAt_DESC
type_ASC
type_DESC
updatedAt_ASC
updatedAt_DESC
}
type NotificationPreviousValues {
id: ID!
createdAt: DateTime!
type: String!
}
type NotificationSubscriptionPayload {
mutation: MutationType!
node: Notification
updatedFields: [String!]
previousValues: NotificationPreviousValues
}
input NotificationSubscriptionWhereInput {
AND: [NotificationSubscriptionWhereInput!]
OR: [NotificationSubscriptionWhereInput!]
mutation_in: [MutationType!]
updatedFields_contains: String
updatedFields_contains_every: [String!]
updatedFields_contains_some: [String!]
node: NotificationWhereInput
}
input NotificationUpdateInput {
type: String
}
input NotificationWhereInput {
AND: [NotificationWhereInput!]
OR: [NotificationWhereInput!]
id: ID
id_not: ID
id_in: [ID!]
id_not_in: [ID!]
id_lt: ID
id_lte: ID
id_gt: ID
id_gte: ID
id_contains: ID
id_not_contains: ID
id_starts_with: ID
id_not_starts_with: ID
id_ends_with: ID
id_not_ends_with: ID
createdAt: DateTime
createdAt_not: DateTime
createdAt_in: [DateTime!]
createdAt_not_in: [DateTime!]
createdAt_lt: DateTime
createdAt_lte: DateTime
createdAt_gt: DateTime
createdAt_gte: DateTime
type: String
type_not: String
type_in: [String!]
type_not_in: [String!]
type_lt: String
type_lte: String
type_gt: String
type_gte: String
type_contains: String
type_not_contains: String
type_starts_with: String
type_not_starts_with: String
type_ends_with: String
type_not_ends_with: String
}
input NotificationWhereUniqueInput {
id: ID
}
type PageInfo {
hasNextPage: Boolean!
hasPreviousPage: Boolean!
startCursor: String
endCursor: String
}
type Query {
tweets(where: TweetWhereInput, orderBy: TweetOrderByInput, skip: Int, after: String, before: String, first: Int, last: Int): [Tweet]!
users(where: UserWhereInput, orderBy: UserOrderByInput, skip: Int, after: String, before: String, first: Int, last: Int): [User]!
stats(where: StatWhereInput, orderBy: StatOrderByInput, skip: Int, after: String, before: String, first: Int, last: Int): [Stat]!
notifications(where: NotificationWhereInput, orderBy: NotificationOrderByInput, skip: Int, after: String, before: String, first: Int, last: Int): [Notification]!
tweet(where: TweetWhereUniqueInput!): Tweet
user(where: UserWhereUniqueInput!): User
stat(where: StatWhereUniqueInput!): Stat
notification(where: NotificationWhereUniqueInput!): Notification
tweetsConnection(where: TweetWhereInput, orderBy: TweetOrderByInput, skip: Int, after: String, before: String, first: Int, last: Int): TweetConnection!
usersConnection(where: UserWhereInput, orderBy: UserOrderByInput, skip: Int, after: String, before: String, first: Int, last: Int): UserConnection!
statsConnection(where: StatWhereInput, orderBy: StatOrderByInput, skip: Int, after: String, before: String, first: Int, last: Int): StatConnection!
notificationsConnection(where: NotificationWhereInput, orderBy: NotificationOrderByInput, skip: Int, after: String, before: String, first: Int, last: Int): NotificationConnection!
node(id: ID!): Node
}
type StatConnection {
pageInfo: PageInfo!
edges: [StatEdge]!
aggregate: AggregateStat!
}
input StatCreateInput {
views: Int!
likes: Int!
retweets: Int!
responses: Int!
}
input StatCreateOneInput {
create: StatCreateInput
connect: StatWhereUniqueInput
}
type StatEdge {
node: Stat!
cursor: String!
}
enum StatOrderByInput {
id_ASC
id_DESC
views_ASC
views_DESC
likes_ASC
likes_DESC
retweets_ASC
retweets_DESC
responses_ASC
responses_DESC
updatedAt_ASC
updatedAt_DESC
createdAt_ASC
createdAt_DESC
}
type StatPreviousValues {
id: ID!
views: Int!
likes: Int!
retweets: Int!
responses: Int!
}
type StatSubscriptionPayload {
mutation: MutationType!
node: Stat
updatedFields: [String!]
previousValues: StatPreviousValues
}
input StatSubscriptionWhereInput {
AND: [StatSubscriptionWhereInput!]
OR: [StatSubscriptionWhereInput!]
mutation_in: [MutationType!]
updatedFields_contains: String
updatedFields_contains_every: [String!]
updatedFields_contains_some: [String!]
node: StatWhereInput
}
input StatUpdateInput {
views: Int
likes: Int
retweets: Int
responses: Int
}
input StatUpdateOneInput {
create: StatCreateInput
connect: StatWhereUniqueInput
disconnect: StatWhereUniqueInput
delete: StatWhereUniqueInput
}
input StatWhereInput {
AND: [StatWhereInput!]
OR: [StatWhereInput!]
id: ID
id_not: ID
id_in: [ID!]
id_not_in: [ID!]
id_lt: ID
id_lte: ID
id_gt: ID
id_gte: ID
id_contains: ID
id_not_contains: ID
id_starts_with: ID
id_not_starts_with: ID
id_ends_with: ID
id_not_ends_with: ID
views: Int
views_not: Int
views_in: [Int!]
views_not_in: [Int!]
views_lt: Int
views_lte: Int
views_gt: Int
views_gte: Int
likes: Int
likes_not: Int
likes_in: [Int!]
likes_not_in: [Int!]
likes_lt: Int
likes_lte: Int
likes_gt: Int
likes_gte: Int
retweets: Int
retweets_not: Int
retweets_in: [Int!]
retweets_not_in: [Int!]
retweets_lt: Int
retweets_lte: Int
retweets_gt: Int
retweets_gte: Int
responses: Int
responses_not: Int
responses_in: [Int!]
responses_not_in: [Int!]
responses_lt: Int
responses_lte: Int
responses_gt: Int
responses_gte: Int
}
input StatWhereUniqueInput {
id: ID
}
type Subscription {
tweet(where: TweetSubscriptionWhereInput): TweetSubscriptionPayload
user(where: UserSubscriptionWhereInput): UserSubscriptionPayload
stat(where: StatSubscriptionWhereInput): StatSubscriptionPayload
notification(where: NotificationSubscriptionWhereInput): NotificationSubscriptionPayload
}
type TweetConnection {
pageInfo: PageInfo!
edges: [TweetEdge]!
aggregate: AggregateTweet!
}
input TweetCreateInput {
body: String!
postedBy: UserCreateOneWithoutTweetsInput
stats: StatCreateOneInput
}
input TweetCreateManyWithoutPostedByInput {
create: [TweetCreateWithoutPostedByInput!]
connect: [TweetWhereUniqueInput!]
}
input TweetCreateWithoutPostedByInput {
body: String!
stats: StatCreateOneInput
}
type TweetEdge {
node: Tweet!
cursor: String!
}
enum TweetOrderByInput {
id_ASC
id_DESC
body_ASC
body_DESC
createdAt_ASC
createdAt_DESC
updatedAt_ASC
updatedAt_DESC
}
type TweetPreviousValues {
id: ID!
body: String!
createdAt: DateTime!
}
type TweetSubscriptionPayload {
mutation: MutationType!
node: Tweet
updatedFields: [String!]
previousValues: TweetPreviousValues
}
input TweetSubscriptionWhereInput {
AND: [TweetSubscriptionWhereInput!]
OR: [TweetSubscriptionWhereInput!]
mutation_in: [MutationType!]
updatedFields_contains: String
updatedFields_contains_every: [String!]
updatedFields_contains_some: [String!]
node: TweetWhereInput
}
input TweetUpdateInput {
body: String
postedBy: UserUpdateOneWithoutTweetsInput
stats: StatUpdateOneInput
}
input TweetUpdateManyWithoutPostedByInput {
create: [TweetCreateWithoutPostedByInput!]
connect: [TweetWhereUniqueInput!]
disconnect: [TweetWhereUniqueInput!]
delete: [TweetWhereUniqueInput!]
update: [TweetUpdateWithoutPostedByInput!]
upsert: [TweetUpsertWithoutPostedByInput!]
}
input TweetUpdateWithoutPostedByDataInput {
body: String
stats: StatUpdateOneInput
}
input TweetUpdateWithoutPostedByInput {
where: TweetWhereUniqueInput!
data: TweetUpdateWithoutPostedByDataInput!
}
input TweetUpsertWithoutPostedByInput {
where: TweetWhereUniqueInput!
update: TweetUpdateWithoutPostedByDataInput!
create: TweetCreateWithoutPostedByInput!
}
input TweetWhereInput {
AND: [TweetWhereInput!]
OR: [TweetWhereInput!]
id: ID
id_not: ID
id_in: [ID!]
id_not_in: [ID!]
id_lt: ID
id_lte: ID
id_gt: ID
id_gte: ID
id_contains: ID
id_not_contains: ID
id_starts_with: ID
id_not_starts_with: ID
id_ends_with: ID
id_not_ends_with: ID
body: String
body_not: String
body_in: [String!]
body_not_in: [String!]
body_lt: String
body_lte: String
body_gt: String
body_gte: String
body_contains: String
body_not_contains: String
body_starts_with: String
body_not_starts_with: String
body_ends_with: String
body_not_ends_with: String
createdAt: DateTime
createdAt_not: DateTime
createdAt_in: [DateTime!]
createdAt_not_in: [DateTime!]
createdAt_lt: DateTime
createdAt_lte: DateTime
createdAt_gt: DateTime
createdAt_gte: DateTime
postedBy: UserWhereInput
stats: StatWhereInput
}
input TweetWhereUniqueInput {
id: ID
}
type UserConnection {
pageInfo: PageInfo!
edges: [UserEdge]!
aggregate: AggregateUser!
}
input UserCreateInput {
username: String!
firstName: String
lastName: String
fullName: String!
email: String!
password: String!
avatar: String
tweets: TweetCreateManyWithoutPostedByInput
}
input UserCreateOneWithoutTweetsInput {
create: UserCreateWithoutTweetsInput
connect: UserWhereUniqueInput
}
input UserCreateWithoutTweetsInput {
username: String!
firstName: String
lastName: String
fullName: String!
email: String!
password: String!
avatar: String
}
type UserEdge {
node: User!
cursor: String!
}
enum UserOrderByInput {
id_ASC
id_DESC
username_ASC
username_DESC
firstName_ASC
firstName_DESC
lastName_ASC
lastName_DESC
fullName_ASC
fullName_DESC
email_ASC
email_DESC
password_ASC
password_DESC
avatar_ASC
avatar_DESC
updatedAt_ASC
updatedAt_DESC
createdAt_ASC
createdAt_DESC
}
type UserPreviousValues {
id: ID!
username: String!
firstName: String
lastName: String
fullName: String!
email: String!
password: String!
avatar: String
}
type UserSubscriptionPayload {
mutation: MutationType!
node: User
updatedFields: [String!]
previousValues: UserPreviousValues
}
input UserSubscriptionWhereInput {
AND: [UserSubscriptionWhereInput!]
OR: [UserSubscriptionWhereInput!]
mutation_in: [MutationType!]
updatedFields_contains: String
updatedFields_contains_every: [String!]
updatedFields_contains_some: [String!]
node: UserWhereInput
}
input UserUpdateInput {
username: String
firstName: String
lastName: String
fullName: String
email: String
password: String
avatar: String
tweets: TweetUpdateManyWithoutPostedByInput
}
input UserUpdateOneWithoutTweetsInput {
create: UserCreateWithoutTweetsInput
connect: UserWhereUniqueInput
disconnect: UserWhereUniqueInput
delete: UserWhereUniqueInput
update: UserUpdateWithoutTweetsInput
upsert: UserUpsertWithoutTweetsInput
}
input UserUpdateWithoutTweetsDataInput {
username: String
firstName: String
lastName: String
fullName: String
email: String
password: String
avatar: String
}
input UserUpdateWithoutTweetsInput {
where: UserWhereUniqueInput!
data: UserUpdateWithoutTweetsDataInput!
}
input UserUpsertWithoutTweetsInput {
where: UserWhereUniqueInput!
update: UserUpdateWithoutTweetsDataInput!
create: UserCreateWithoutTweetsInput!
}
input UserWhereInput {
AND: [UserWhereInput!]
OR: [UserWhereInput!]
id: ID
id_not: ID
id_in: [ID!]
id_not_in: [ID!]
id_lt: ID
id_lte: ID
id_gt: ID
id_gte: ID
id_contains: ID
id_not_contains: ID
id_starts_with: ID
id_not_starts_with: ID
id_ends_with: ID
id_not_ends_with: ID
username: String
username_not: String
username_in: [String!]
username_not_in: [String!]
username_lt: String
username_lte: String
username_gt: String
username_gte: String
username_contains: String
username_not_contains: String
username_starts_with: String
username_not_starts_with: String
username_ends_with: String
username_not_ends_with: String
firstName: String
firstName_not: String
firstName_in: [String!]
firstName_not_in: [String!]
firstName_lt: String
firstName_lte: String
firstName_gt: String
firstName_gte: String
firstName_contains: String
firstName_not_contains: String
firstName_starts_with: String
firstName_not_starts_with: String
firstName_ends_with: String
firstName_not_ends_with: String
lastName: String
lastName_not: String
lastName_in: [String!]
lastName_not_in: [String!]
lastName_lt: String
lastName_lte: String
lastName_gt: String
lastName_gte: String
lastName_contains: String
lastName_not_contains: String
lastName_starts_with: String
lastName_not_starts_with: String
lastName_ends_with: String
lastName_not_ends_with: String
fullName: String
fullName_not: String
fullName_in: [String!]
fullName_not_in: [String!]
fullName_lt: String
fullName_lte: String
fullName_gt: String
fullName_gte: String
fullName_contains: String
fullName_not_contains: String
fullName_starts_with: String
fullName_not_starts_with: String
fullName_ends_with: String
fullName_not_ends_with: String
email: String
email_not: String
email_in: [String!]
email_not_in: [String!]
email_lt: String
email_lte: String
email_gt: String
email_gte: 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
password: String
password_not: String
password_in: [String!]
password_not_in: [String!]
password_lt: String
password_lte: String
password_gt: String
password_gte: String
password_contains: String
password_not_contains: String
password_starts_with: String
password_not_starts_with: String
password_ends_with: String
password_not_ends_with: String
avatar: String
avatar_not: String
avatar_in: [String!]
avatar_not_in: [String!]
avatar_lt: String
avatar_lte: String
avatar_gt: String
avatar_gte: String
avatar_contains: String
avatar_not_contains: String
avatar_starts_with: String
avatar_not_starts_with: String
avatar_ends_with: String
avatar_not_ends_with: String
tweets_every: TweetWhereInput
tweets_some: TweetWhereInput
tweets_none: TweetWhereInput
}
input UserWhereUniqueInput {
id: ID
username: String
email: String
}