@contember/engine-content-api 1.3.0-alpha.8 → 1.3.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (107) hide show
  1. package/dist/src/ExecutionContainer.d.ts +3 -3
  2. package/dist/src/ExecutionContainer.d.ts.map +1 -1
  3. package/dist/src/acl/Authorizator.d.ts +1 -1
  4. package/dist/src/acl/Authorizator.d.ts.map +1 -1
  5. package/dist/src/extensions/EntityFieldsProvider.d.ts +1 -1
  6. package/dist/src/extensions/EntityFieldsProvider.d.ts.map +1 -1
  7. package/dist/src/input-validation/InputValidator.d.ts +1 -1
  8. package/dist/src/input-validation/InputValidator.d.ts.map +1 -1
  9. package/dist/src/input-validation/ValidationContext.js +1 -2
  10. package/dist/src/input-validation/ValidationContext.js.map +1 -1
  11. package/dist/src/input-validation/ValidationPath.d.ts +1 -1
  12. package/dist/src/input-validation/ValidationPath.d.ts.map +1 -1
  13. package/dist/src/input-validation/dependencies/DependencyCollector.d.ts +1 -1
  14. package/dist/src/input-validation/dependencies/DependencyCollector.d.ts.map +1 -1
  15. package/dist/src/input-validation/preValidation/CreateInputPreValidationProcessor.d.ts +1 -1
  16. package/dist/src/input-validation/preValidation/CreateInputPreValidationProcessor.d.ts.map +1 -1
  17. package/dist/src/input-validation/preValidation/UpdateInputPreValidationProcessor.d.ts +1 -1
  18. package/dist/src/input-validation/preValidation/UpdateInputPreValidationProcessor.d.ts.map +1 -1
  19. package/dist/src/inputProcessing/UniqueWhereExpander.d.ts +1 -1
  20. package/dist/src/inputProcessing/UniqueWhereExpander.d.ts.map +1 -1
  21. package/dist/src/introspection/content-schema.types.d.ts +22 -22
  22. package/dist/src/introspection/content-schema.types.d.ts.map +1 -1
  23. package/dist/src/introspection/content-schema.types.js +3 -3
  24. package/dist/src/introspection/content-schema.types.js.map +1 -1
  25. package/dist/src/mapper/ColumnValue.d.ts +2 -2
  26. package/dist/src/mapper/ColumnValue.d.ts.map +1 -1
  27. package/dist/src/mapper/DataManipulationBuilder.d.ts +1 -1
  28. package/dist/src/mapper/DataManipulationBuilder.d.ts.map +1 -1
  29. package/dist/src/mapper/EventManager.d.ts +4 -4
  30. package/dist/src/mapper/EventManager.d.ts.map +1 -1
  31. package/dist/src/mapper/JunctionTableManager.d.ts +2 -2
  32. package/dist/src/mapper/JunctionTableManager.d.ts.map +1 -1
  33. package/dist/src/mapper/MapperFactory.d.ts +1 -1
  34. package/dist/src/mapper/MapperFactory.d.ts.map +1 -1
  35. package/dist/src/mapper/Result.d.ts +5 -5
  36. package/dist/src/mapper/Result.d.ts.map +1 -1
  37. package/dist/src/mapper/Result.js +6 -6
  38. package/dist/src/mapper/Result.js.map +1 -1
  39. package/dist/src/mapper/delete/DeleteExecutor.d.ts.map +1 -1
  40. package/dist/src/mapper/delete/DeleteExecutor.js +3 -0
  41. package/dist/src/mapper/delete/DeleteExecutor.js.map +1 -1
  42. package/dist/src/mapper/delete/helpers.d.ts +3 -3
  43. package/dist/src/mapper/delete/helpers.d.ts.map +1 -1
  44. package/dist/src/mapper/relations/ManyHasManyInputProcessor.d.ts +1 -1
  45. package/dist/src/mapper/relations/ManyHasManyInputProcessor.d.ts.map +1 -1
  46. package/dist/src/mapper/select/Path.js +3 -3
  47. package/dist/src/mapper/select/Path.js.map +1 -1
  48. package/dist/src/mapper/select/RelationFetcher.d.ts +6 -6
  49. package/dist/src/mapper/select/RelationFetcher.d.ts.map +1 -1
  50. package/dist/src/mapper/select/SelectExecutionHandler.d.ts +2 -2
  51. package/dist/src/mapper/select/SelectExecutionHandler.d.ts.map +1 -1
  52. package/dist/src/mapper/select/SelectHydrator.d.ts +7 -7
  53. package/dist/src/mapper/select/SelectHydrator.d.ts.map +1 -1
  54. package/dist/src/mapper/select/WhereBuilder.d.ts +1 -1
  55. package/dist/src/mapper/select/WhereBuilder.d.ts.map +1 -1
  56. package/dist/src/mapper/types.d.ts +1 -1
  57. package/dist/src/mapper/types.d.ts.map +1 -1
  58. package/dist/src/resolvers/GraphQlQueryAstFactory.d.ts +1 -1
  59. package/dist/src/resolvers/GraphQlQueryAstFactory.d.ts.map +1 -1
  60. package/dist/src/resolvers/MutationResolver.d.ts +2 -2
  61. package/dist/src/resolvers/MutationResolver.d.ts.map +1 -1
  62. package/dist/src/schema/ColumnTypeResolver.d.ts +1 -1
  63. package/dist/src/schema/ColumnTypeResolver.d.ts.map +1 -1
  64. package/dist/src/schema/MutationProvider.d.ts +1 -1
  65. package/dist/src/schema/MutationProvider.d.ts.map +1 -1
  66. package/dist/src/schema/ValidationQueriesProvider.d.ts +1 -1
  67. package/dist/src/schema/ValidationQueriesProvider.d.ts.map +1 -1
  68. package/dist/src/schema/mutations/EntityInputProvider.js +1 -1
  69. package/dist/src/schema/mutations/EntityInputProvider.js.map +1 -1
  70. package/dist/src/tsconfig.tsbuildinfo +1 -1
  71. package/dist/src/utils/Interface.d.ts +1 -1
  72. package/dist/src/utils/Interface.d.ts.map +1 -1
  73. package/dist/src/utils/object.d.ts +2 -2
  74. package/dist/src/utils/object.d.ts.map +1 -1
  75. package/dist/src/utils/uniqueWhereFields.d.ts +1 -1
  76. package/dist/src/utils/uniqueWhereFields.d.ts.map +1 -1
  77. package/dist/tests/cases/integration/graphQlRequests/delete/restrictOnDelete.test.js +64 -0
  78. package/dist/tests/cases/integration/graphQlRequests/delete/restrictOnDelete.test.js.map +1 -1
  79. package/dist/tests/cases/integration/graphQlRequests/validation/conditions.test.js +1 -1
  80. package/dist/tests/cases/integration/graphQlRequests/validation/conditions.test.js.map +1 -1
  81. package/dist/tests/cases/integration/graphQlRequests/validation/optionalAssert.test.js +1 -1
  82. package/dist/tests/cases/integration/graphQlRequests/validation/optionalAssert.test.js.map +1 -1
  83. package/dist/tests/cases/integration/graphQlRequests/validation/requiredWhen.test.js +1 -1
  84. package/dist/tests/cases/integration/graphQlRequests/validation/requiredWhen.test.js.map +1 -1
  85. package/dist/tests/cases/integration/graphQlSchema/model.js +2 -3
  86. package/dist/tests/cases/integration/graphQlSchema/model.js.map +1 -1
  87. package/dist/tests/src/utils.d.ts +1 -1
  88. package/dist/tests/src/utils.d.ts.map +1 -1
  89. package/dist/tests/tsconfig.tsbuildinfo +1 -1
  90. package/package.json +13 -14
  91. package/src/mapper/delete/DeleteExecutor.ts +4 -0
  92. package/tests/cases/integration/graphQlRequests/delete/restrictOnDelete.test.ts +54 -1
  93. package/dist/tests/cases/integration/graphQlSchema/schema-acl-allowed.gql +0 -420
  94. package/dist/tests/cases/integration/graphQlSchema/schema-acl-create-only.gql +0 -229
  95. package/dist/tests/cases/integration/graphQlSchema/schema-acl-predicate.gql +0 -112
  96. package/dist/tests/cases/integration/graphQlSchema/schema-acl-predicate2.gql +0 -112
  97. package/dist/tests/cases/integration/graphQlSchema/schema-acl-restricted-create.gql +0 -309
  98. package/dist/tests/cases/integration/graphQlSchema/schema-acl-restricted-delete.gql +0 -402
  99. package/dist/tests/cases/integration/graphQlSchema/schema-acl-restricted-update.gql +0 -338
  100. package/dist/tests/cases/integration/graphQlSchema/schema-acl.gql +0 -221
  101. package/dist/tests/cases/integration/graphQlSchema/schema-aliased-type.gql +0 -226
  102. package/dist/tests/cases/integration/graphQlSchema/schema-basic.gql +0 -841
  103. package/dist/tests/cases/integration/graphQlSchema/schema-bug-66.gql +0 -540
  104. package/dist/tests/cases/integration/graphQlSchema/schema-custom-primary.gql +0 -851
  105. package/dist/tests/cases/integration/graphQlSchema/schema-has-many-reduction.gql +0 -453
  106. package/dist/tests/cases/integration/graphQlSchema/schema-new-builder.gql +0 -912
  107. package/dist/tests/cases/integration/graphQlSchema/schema-view-entity.gql +0 -112
@@ -1,851 +0,0 @@
1
- type Query {
2
- getAuthor(by: AuthorUniqueWhere!, filter: AuthorWhere): Author
3
- listAuthor(filter: AuthorWhere, orderBy: [AuthorOrderBy!], offset: Int, limit: Int): [Author!]!
4
- paginateAuthor(filter: AuthorWhere, orderBy: [AuthorOrderBy!], skip: Int, first: Int): AuthorConnection!
5
- validateCreateAuthor(data: AuthorCreateInput!): _ValidationResult!
6
- validateUpdateAuthor(by: AuthorUniqueWhere!, data: AuthorUpdateInput!): _ValidationResult!
7
- getCategory(by: CategoryUniqueWhere!, filter: CategoryWhere): Category
8
- listCategory(filter: CategoryWhere, orderBy: [CategoryOrderBy!], offset: Int, limit: Int): [Category!]!
9
- paginateCategory(filter: CategoryWhere, orderBy: [CategoryOrderBy!], skip: Int, first: Int): CategoryConnection!
10
- validateCreateCategory(data: CategoryCreateInput!): _ValidationResult!
11
- validateUpdateCategory(by: CategoryUniqueWhere!, data: CategoryUpdateInput!): _ValidationResult!
12
- getPostLocale(by: PostLocaleUniqueWhere!, filter: PostLocaleWhere): PostLocale
13
- listPostLocale(filter: PostLocaleWhere, orderBy: [PostLocaleOrderBy!], offset: Int, limit: Int): [PostLocale!]!
14
- paginatePostLocale(filter: PostLocaleWhere, orderBy: [PostLocaleOrderBy!], skip: Int, first: Int): PostLocaleConnection!
15
- validateCreatePostLocale(data: PostLocaleCreateInput!): _ValidationResult!
16
- validateUpdatePostLocale(by: PostLocaleUniqueWhere!, data: PostLocaleUpdateInput!): _ValidationResult!
17
- getPost(by: PostUniqueWhere!, filter: PostWhere): Post
18
- listPost(filter: PostWhere, orderBy: [PostOrderBy!], offset: Int, limit: Int): [Post!]!
19
- paginatePost(filter: PostWhere, orderBy: [PostOrderBy!], skip: Int, first: Int): PostConnection!
20
- validateCreatePost(data: PostCreateInput!): _ValidationResult!
21
- validateUpdatePost(by: PostUniqueWhere!, data: PostUpdateInput!): _ValidationResult!
22
- transaction: QueryTransaction
23
- _info: Info
24
- }
25
-
26
- type Author {
27
- _meta: AuthorMeta
28
- id: UUID!
29
- name: String
30
- posts(filter: PostWhere, orderBy: [PostOrderBy!], offset: Int, limit: Int): [Post!]!
31
- postsByLocales(by: AuthorPostsByLocalesUniqueWhere!, filter: PostWhere): Post
32
- paginatePosts(filter: PostWhere, orderBy: [PostOrderBy!], skip: Int, first: Int): PostConnection!
33
- }
34
-
35
- type AuthorMeta {
36
- id: FieldMeta
37
- name: FieldMeta
38
- posts: FieldMeta
39
- }
40
-
41
- type FieldMeta {
42
- readable: Boolean
43
- updatable: Boolean
44
- }
45
-
46
- scalar UUID
47
-
48
- type Post {
49
- _meta: PostMeta
50
- author(filter: AuthorWhere): Author
51
- id: UUID!
52
- publishedAt: DateTime
53
- locales(filter: PostLocaleWhere, orderBy: [PostLocaleOrderBy!], offset: Int, limit: Int): [PostLocale!]!
54
- categories(filter: CategoryWhere, orderBy: [CategoryOrderBy!], offset: Int, limit: Int): [Category!]!
55
- paginateLocales(filter: PostLocaleWhere, orderBy: [PostLocaleOrderBy!], skip: Int, first: Int): PostLocaleConnection!
56
- paginateCategories(filter: CategoryWhere, orderBy: [CategoryOrderBy!], skip: Int, first: Int): CategoryConnection!
57
- }
58
-
59
- type PostMeta {
60
- author: FieldMeta
61
- id: FieldMeta
62
- publishedAt: FieldMeta
63
- locales: FieldMeta
64
- categories: FieldMeta
65
- }
66
-
67
- input AuthorWhere {
68
- id: UUIDCondition
69
- name: StringCondition
70
- posts: PostWhere
71
- and: [AuthorWhere]
72
- or: [AuthorWhere]
73
- not: AuthorWhere
74
- }
75
-
76
- input UUIDCondition {
77
- and: [UUIDCondition!]
78
- or: [UUIDCondition!]
79
- not: UUIDCondition
80
- null: Boolean
81
- isNull: Boolean
82
- eq: UUID
83
- notEq: UUID
84
- in: [UUID!]
85
- notIn: [UUID!]
86
- lt: UUID
87
- lte: UUID
88
- gt: UUID
89
- gte: UUID
90
- }
91
-
92
- input StringCondition {
93
- and: [StringCondition!]
94
- or: [StringCondition!]
95
- not: StringCondition
96
- null: Boolean
97
- isNull: Boolean
98
- eq: String
99
- notEq: String
100
- in: [String!]
101
- notIn: [String!]
102
- lt: String
103
- lte: String
104
- gt: String
105
- gte: String
106
- contains: String
107
- startsWith: String
108
- endsWith: String
109
- containsCI: String
110
- startsWithCI: String
111
- endsWithCI: String
112
- }
113
-
114
- input PostWhere {
115
- author: AuthorWhere
116
- id: UUIDCondition
117
- publishedAt: DateTimeCondition
118
- locales: PostLocaleWhere
119
- categories: CategoryWhere
120
- and: [PostWhere]
121
- or: [PostWhere]
122
- not: PostWhere
123
- }
124
-
125
- input DateTimeCondition {
126
- and: [DateTimeCondition!]
127
- or: [DateTimeCondition!]
128
- not: DateTimeCondition
129
- null: Boolean
130
- isNull: Boolean
131
- eq: DateTime
132
- notEq: DateTime
133
- in: [DateTime!]
134
- notIn: [DateTime!]
135
- lt: DateTime
136
- lte: DateTime
137
- gt: DateTime
138
- gte: DateTime
139
- }
140
-
141
- scalar DateTime
142
-
143
- input PostLocaleWhere {
144
- id: UUIDCondition
145
- title: StringCondition
146
- Post: PostWhere
147
- and: [PostLocaleWhere]
148
- or: [PostLocaleWhere]
149
- not: PostLocaleWhere
150
- }
151
-
152
- input CategoryWhere {
153
- id: UUIDCondition
154
- name: StringCondition
155
- posts: PostWhere
156
- and: [CategoryWhere]
157
- or: [CategoryWhere]
158
- not: CategoryWhere
159
- }
160
-
161
- type PostLocale {
162
- _meta: PostLocaleMeta
163
- id: UUID!
164
- title: String
165
- Post(filter: PostWhere): Post
166
- }
167
-
168
- type PostLocaleMeta {
169
- id: FieldMeta
170
- title: FieldMeta
171
- Post: FieldMeta
172
- }
173
-
174
- input PostLocaleOrderBy {
175
- _random: Boolean
176
- _randomSeeded: Int
177
- id: OrderDirection
178
- title: OrderDirection
179
- Post: PostOrderBy
180
- }
181
-
182
- enum OrderDirection {
183
- asc
184
- desc
185
- ascNullsFirst
186
- descNullsLast
187
- }
188
-
189
- input PostOrderBy {
190
- _random: Boolean
191
- _randomSeeded: Int
192
- author: AuthorOrderBy
193
- id: OrderDirection
194
- publishedAt: OrderDirection
195
- }
196
-
197
- input AuthorOrderBy {
198
- _random: Boolean
199
- _randomSeeded: Int
200
- id: OrderDirection
201
- name: OrderDirection
202
- }
203
-
204
- type Category {
205
- _meta: CategoryMeta
206
- id: UUID!
207
- name: String
208
- posts(filter: PostWhere, orderBy: [PostOrderBy!], offset: Int, limit: Int): [Post!]!
209
- paginatePosts(filter: PostWhere, orderBy: [PostOrderBy!], skip: Int, first: Int): PostConnection!
210
- }
211
-
212
- type CategoryMeta {
213
- id: FieldMeta
214
- name: FieldMeta
215
- posts: FieldMeta
216
- }
217
-
218
- type PostConnection {
219
- pageInfo: PageInfo!
220
- edges: [PostEdge!]!
221
- }
222
-
223
- type PageInfo {
224
- totalCount: Int!
225
- }
226
-
227
- type PostEdge {
228
- node: Post!
229
- }
230
-
231
- input CategoryOrderBy {
232
- _random: Boolean
233
- _randomSeeded: Int
234
- id: OrderDirection
235
- name: OrderDirection
236
- }
237
-
238
- type PostLocaleConnection {
239
- pageInfo: PageInfo!
240
- edges: [PostLocaleEdge!]!
241
- }
242
-
243
- type PostLocaleEdge {
244
- node: PostLocale!
245
- }
246
-
247
- type CategoryConnection {
248
- pageInfo: PageInfo!
249
- edges: [CategoryEdge!]!
250
- }
251
-
252
- type CategoryEdge {
253
- node: Category!
254
- }
255
-
256
- input AuthorPostsByLocalesUniqueWhere {
257
- locales: PostLocaleUniqueWhere
258
- }
259
-
260
- input PostLocaleUniqueWhere {
261
- id: UUID
262
- }
263
-
264
- input AuthorUniqueWhere {
265
- id: UUID
266
- posts: PostUniqueWhere
267
- }
268
-
269
- input PostUniqueWhere {
270
- id: UUID
271
- locales: PostLocaleUniqueWhere
272
- }
273
-
274
- type AuthorConnection {
275
- pageInfo: PageInfo!
276
- edges: [AuthorEdge!]!
277
- }
278
-
279
- type AuthorEdge {
280
- node: Author!
281
- }
282
-
283
- type _ValidationResult {
284
- valid: Boolean!
285
- errors: [_ValidationError!]!
286
- }
287
-
288
- type _ValidationError {
289
- path: [_PathFragment!]!
290
- message: _ValidationMessage!
291
- }
292
-
293
- union _PathFragment = _FieldPathFragment | _IndexPathFragment
294
-
295
- type _FieldPathFragment {
296
- field: String!
297
- }
298
-
299
- type _IndexPathFragment {
300
- index: Int!
301
- alias: String
302
- }
303
-
304
- type _ValidationMessage {
305
- text: String!
306
- }
307
-
308
- input AuthorCreateInput {
309
- id: UUID
310
- name: String
311
- posts: [AuthorCreatePostsEntityRelationInput!]
312
- _dummy_field_: Boolean
313
- }
314
-
315
- input AuthorCreatePostsEntityRelationInput {
316
- connect: PostUniqueWhere
317
- create: PostWithoutAuthorCreateInput
318
- connectOrCreate: AuthorConnectOrCreatePostsRelationInput
319
- alias: String
320
- }
321
-
322
- input PostWithoutAuthorCreateInput {
323
- id: UUID
324
- publishedAt: DateTime
325
- locales: [PostCreateLocalesEntityRelationInput!]
326
- categories: [PostCreateCategoriesEntityRelationInput!]
327
- _dummy_field_: Boolean
328
- }
329
-
330
- input PostCreateLocalesEntityRelationInput {
331
- connect: PostLocaleUniqueWhere
332
- create: PostLocaleWithoutPostCreateInput
333
- connectOrCreate: PostConnectOrCreateLocalesRelationInput
334
- alias: String
335
- }
336
-
337
- input PostLocaleWithoutPostCreateInput {
338
- id: UUID
339
- title: String
340
- _dummy_field_: Boolean
341
- }
342
-
343
- input PostConnectOrCreateLocalesRelationInput {
344
- connect: PostLocaleUniqueWhere
345
- create: PostLocaleWithoutPostCreateInput
346
- }
347
-
348
- input PostCreateCategoriesEntityRelationInput {
349
- connect: CategoryUniqueWhere
350
- create: CategoryWithoutPostsCreateInput
351
- connectOrCreate: PostConnectOrCreateCategoriesRelationInput
352
- alias: String
353
- }
354
-
355
- input CategoryUniqueWhere {
356
- id: UUID
357
- }
358
-
359
- input CategoryWithoutPostsCreateInput {
360
- id: UUID
361
- name: String
362
- _dummy_field_: Boolean
363
- }
364
-
365
- input PostConnectOrCreateCategoriesRelationInput {
366
- connect: CategoryUniqueWhere
367
- create: CategoryWithoutPostsCreateInput
368
- }
369
-
370
- input AuthorConnectOrCreatePostsRelationInput {
371
- connect: PostUniqueWhere
372
- create: PostWithoutAuthorCreateInput
373
- }
374
-
375
- input AuthorUpdateInput {
376
- name: String
377
- posts: [AuthorUpdatePostsEntityRelationInput!]
378
- _dummy_field_: Boolean
379
- }
380
-
381
- input AuthorUpdatePostsEntityRelationInput {
382
- create: PostWithoutAuthorCreateInput
383
- update: AuthorUpdatePostsRelationInput
384
- upsert: AuthorUpsertPostsRelationInput
385
- connect: PostUniqueWhere
386
- disconnect: PostUniqueWhere
387
- delete: PostUniqueWhere
388
- alias: String
389
- }
390
-
391
- input AuthorUpdatePostsRelationInput {
392
- by: PostUniqueWhere
393
- data: PostWithoutAuthorUpdateInput
394
- }
395
-
396
- input PostWithoutAuthorUpdateInput {
397
- publishedAt: DateTime
398
- locales: [PostUpdateLocalesEntityRelationInput!]
399
- categories: [PostUpdateCategoriesEntityRelationInput!]
400
- _dummy_field_: Boolean
401
- }
402
-
403
- input PostUpdateLocalesEntityRelationInput {
404
- create: PostLocaleWithoutPostCreateInput
405
- update: PostUpdateLocalesRelationInput
406
- upsert: PostUpsertLocalesRelationInput
407
- connect: PostLocaleUniqueWhere
408
- disconnect: PostLocaleUniqueWhere
409
- delete: PostLocaleUniqueWhere
410
- alias: String
411
- }
412
-
413
- input PostUpdateLocalesRelationInput {
414
- by: PostLocaleUniqueWhere
415
- data: PostLocaleWithoutPostUpdateInput
416
- }
417
-
418
- input PostLocaleWithoutPostUpdateInput {
419
- title: String
420
- _dummy_field_: Boolean
421
- }
422
-
423
- input PostUpsertLocalesRelationInput {
424
- by: PostLocaleUniqueWhere
425
- update: PostLocaleWithoutPostUpdateInput
426
- create: PostLocaleWithoutPostCreateInput
427
- }
428
-
429
- input PostUpdateCategoriesEntityRelationInput {
430
- create: CategoryWithoutPostsCreateInput
431
- update: PostUpdateCategoriesRelationInput
432
- upsert: PostUpsertCategoriesRelationInput
433
- connect: CategoryUniqueWhere
434
- disconnect: CategoryUniqueWhere
435
- delete: CategoryUniqueWhere
436
- alias: String
437
- }
438
-
439
- input PostUpdateCategoriesRelationInput {
440
- by: CategoryUniqueWhere
441
- data: CategoryWithoutPostsUpdateInput
442
- }
443
-
444
- input CategoryWithoutPostsUpdateInput {
445
- name: String
446
- _dummy_field_: Boolean
447
- }
448
-
449
- input PostUpsertCategoriesRelationInput {
450
- by: CategoryUniqueWhere
451
- update: CategoryWithoutPostsUpdateInput
452
- create: CategoryWithoutPostsCreateInput
453
- }
454
-
455
- input AuthorUpsertPostsRelationInput {
456
- by: PostUniqueWhere
457
- update: PostWithoutAuthorUpdateInput
458
- create: PostWithoutAuthorCreateInput
459
- }
460
-
461
- input CategoryCreateInput {
462
- id: UUID
463
- name: String
464
- posts: [CategoryCreatePostsEntityRelationInput!]
465
- _dummy_field_: Boolean
466
- }
467
-
468
- input CategoryCreatePostsEntityRelationInput {
469
- connect: PostUniqueWhere
470
- create: PostWithoutCategoriesCreateInput
471
- connectOrCreate: CategoryConnectOrCreatePostsRelationInput
472
- alias: String
473
- }
474
-
475
- input PostWithoutCategoriesCreateInput {
476
- author: PostCreateAuthorEntityRelationInput
477
- id: UUID
478
- publishedAt: DateTime
479
- locales: [PostCreateLocalesEntityRelationInput!]
480
- _dummy_field_: Boolean
481
- }
482
-
483
- input PostCreateAuthorEntityRelationInput {
484
- connect: AuthorUniqueWhere
485
- create: AuthorWithoutPostsCreateInput
486
- connectOrCreate: PostConnectOrCreateAuthorRelationInput
487
- }
488
-
489
- input AuthorWithoutPostsCreateInput {
490
- id: UUID
491
- name: String
492
- _dummy_field_: Boolean
493
- }
494
-
495
- input PostConnectOrCreateAuthorRelationInput {
496
- connect: AuthorUniqueWhere
497
- create: AuthorWithoutPostsCreateInput
498
- }
499
-
500
- input CategoryConnectOrCreatePostsRelationInput {
501
- connect: PostUniqueWhere
502
- create: PostWithoutCategoriesCreateInput
503
- }
504
-
505
- input CategoryUpdateInput {
506
- name: String
507
- posts: [CategoryUpdatePostsEntityRelationInput!]
508
- _dummy_field_: Boolean
509
- }
510
-
511
- input CategoryUpdatePostsEntityRelationInput {
512
- create: PostWithoutCategoriesCreateInput
513
- update: CategoryUpdatePostsRelationInput
514
- upsert: CategoryUpsertPostsRelationInput
515
- connect: PostUniqueWhere
516
- disconnect: PostUniqueWhere
517
- delete: PostUniqueWhere
518
- alias: String
519
- }
520
-
521
- input CategoryUpdatePostsRelationInput {
522
- by: PostUniqueWhere
523
- data: PostWithoutCategoriesUpdateInput
524
- }
525
-
526
- input PostWithoutCategoriesUpdateInput {
527
- author: PostUpdateAuthorEntityRelationInput
528
- publishedAt: DateTime
529
- locales: [PostUpdateLocalesEntityRelationInput!]
530
- _dummy_field_: Boolean
531
- }
532
-
533
- input PostUpdateAuthorEntityRelationInput {
534
- connect: AuthorUniqueWhere
535
- create: AuthorWithoutPostsCreateInput
536
- connectOrCreate: PostConnectOrCreateAuthorRelationInput
537
- update: AuthorWithoutPostsUpdateInput
538
- upsert: PostUpsertAuthorRelationInput
539
- disconnect: Boolean
540
- delete: Boolean
541
- }
542
-
543
- input AuthorWithoutPostsUpdateInput {
544
- name: String
545
- _dummy_field_: Boolean
546
- }
547
-
548
- input PostUpsertAuthorRelationInput {
549
- update: AuthorWithoutPostsUpdateInput
550
- create: AuthorWithoutPostsCreateInput
551
- }
552
-
553
- input CategoryUpsertPostsRelationInput {
554
- by: PostUniqueWhere
555
- update: PostWithoutCategoriesUpdateInput
556
- create: PostWithoutCategoriesCreateInput
557
- }
558
-
559
- input PostLocaleCreateInput {
560
- id: UUID
561
- title: String
562
- Post: PostLocaleCreatePostEntityRelationInput
563
- _dummy_field_: Boolean
564
- }
565
-
566
- input PostLocaleCreatePostEntityRelationInput {
567
- connect: PostUniqueWhere
568
- create: PostWithoutLocalesCreateInput
569
- connectOrCreate: PostLocaleConnectOrCreatePostRelationInput
570
- }
571
-
572
- input PostWithoutLocalesCreateInput {
573
- author: PostCreateAuthorEntityRelationInput
574
- id: UUID
575
- publishedAt: DateTime
576
- categories: [PostCreateCategoriesEntityRelationInput!]
577
- _dummy_field_: Boolean
578
- }
579
-
580
- input PostLocaleConnectOrCreatePostRelationInput {
581
- connect: PostUniqueWhere
582
- create: PostWithoutLocalesCreateInput
583
- }
584
-
585
- input PostLocaleUpdateInput {
586
- title: String
587
- Post: PostLocaleUpdatePostEntityRelationInput
588
- _dummy_field_: Boolean
589
- }
590
-
591
- input PostLocaleUpdatePostEntityRelationInput {
592
- connect: PostUniqueWhere
593
- create: PostWithoutLocalesCreateInput
594
- connectOrCreate: PostLocaleConnectOrCreatePostRelationInput
595
- update: PostWithoutLocalesUpdateInput
596
- upsert: PostLocaleUpsertPostRelationInput
597
- disconnect: Boolean
598
- delete: Boolean
599
- }
600
-
601
- input PostWithoutLocalesUpdateInput {
602
- author: PostUpdateAuthorEntityRelationInput
603
- publishedAt: DateTime
604
- categories: [PostUpdateCategoriesEntityRelationInput!]
605
- _dummy_field_: Boolean
606
- }
607
-
608
- input PostLocaleUpsertPostRelationInput {
609
- update: PostWithoutLocalesUpdateInput
610
- create: PostWithoutLocalesCreateInput
611
- }
612
-
613
- input PostCreateInput {
614
- author: PostCreateAuthorEntityRelationInput
615
- id: UUID
616
- publishedAt: DateTime
617
- locales: [PostCreateLocalesEntityRelationInput!]
618
- categories: [PostCreateCategoriesEntityRelationInput!]
619
- _dummy_field_: Boolean
620
- }
621
-
622
- input PostUpdateInput {
623
- author: PostUpdateAuthorEntityRelationInput
624
- publishedAt: DateTime
625
- locales: [PostUpdateLocalesEntityRelationInput!]
626
- categories: [PostUpdateCategoriesEntityRelationInput!]
627
- _dummy_field_: Boolean
628
- }
629
-
630
- type QueryTransaction {
631
- getAuthor(by: AuthorUniqueWhere!, filter: AuthorWhere): Author
632
- listAuthor(filter: AuthorWhere, orderBy: [AuthorOrderBy!], offset: Int, limit: Int): [Author!]!
633
- paginateAuthor(filter: AuthorWhere, orderBy: [AuthorOrderBy!], skip: Int, first: Int): AuthorConnection!
634
- validateCreateAuthor(data: AuthorCreateInput!): _ValidationResult!
635
- validateUpdateAuthor(by: AuthorUniqueWhere!, data: AuthorUpdateInput!): _ValidationResult!
636
- getCategory(by: CategoryUniqueWhere!, filter: CategoryWhere): Category
637
- listCategory(filter: CategoryWhere, orderBy: [CategoryOrderBy!], offset: Int, limit: Int): [Category!]!
638
- paginateCategory(filter: CategoryWhere, orderBy: [CategoryOrderBy!], skip: Int, first: Int): CategoryConnection!
639
- validateCreateCategory(data: CategoryCreateInput!): _ValidationResult!
640
- validateUpdateCategory(by: CategoryUniqueWhere!, data: CategoryUpdateInput!): _ValidationResult!
641
- getPostLocale(by: PostLocaleUniqueWhere!, filter: PostLocaleWhere): PostLocale
642
- listPostLocale(filter: PostLocaleWhere, orderBy: [PostLocaleOrderBy!], offset: Int, limit: Int): [PostLocale!]!
643
- paginatePostLocale(filter: PostLocaleWhere, orderBy: [PostLocaleOrderBy!], skip: Int, first: Int): PostLocaleConnection!
644
- validateCreatePostLocale(data: PostLocaleCreateInput!): _ValidationResult!
645
- validateUpdatePostLocale(by: PostLocaleUniqueWhere!, data: PostLocaleUpdateInput!): _ValidationResult!
646
- getPost(by: PostUniqueWhere!, filter: PostWhere): Post
647
- listPost(filter: PostWhere, orderBy: [PostOrderBy!], offset: Int, limit: Int): [Post!]!
648
- paginatePost(filter: PostWhere, orderBy: [PostOrderBy!], skip: Int, first: Int): PostConnection!
649
- validateCreatePost(data: PostCreateInput!): _ValidationResult!
650
- validateUpdatePost(by: PostUniqueWhere!, data: PostUpdateInput!): _ValidationResult!
651
- }
652
-
653
- type Info {
654
- description: String
655
- }
656
-
657
- type Mutation {
658
- createAuthor(data: AuthorCreateInput!): AuthorCreateResult!
659
- deleteAuthor(by: AuthorUniqueWhere!, filter: AuthorWhere): AuthorDeleteResult!
660
- updateAuthor(by: AuthorUniqueWhere!, filter: AuthorWhere, data: AuthorUpdateInput!): AuthorUpdateResult!
661
- upsertAuthor(by: AuthorUniqueWhere!, filter: AuthorWhere, update: AuthorUpdateInput!, create: AuthorCreateInput!): AuthorUpsertResult!
662
- createCategory(data: CategoryCreateInput!): CategoryCreateResult!
663
- deleteCategory(by: CategoryUniqueWhere!, filter: CategoryWhere): CategoryDeleteResult!
664
- updateCategory(by: CategoryUniqueWhere!, filter: CategoryWhere, data: CategoryUpdateInput!): CategoryUpdateResult!
665
- upsertCategory(by: CategoryUniqueWhere!, filter: CategoryWhere, update: CategoryUpdateInput!, create: CategoryCreateInput!): CategoryUpsertResult!
666
- createPostLocale(data: PostLocaleCreateInput!): PostLocaleCreateResult!
667
- deletePostLocale(by: PostLocaleUniqueWhere!, filter: PostLocaleWhere): PostLocaleDeleteResult!
668
- updatePostLocale(by: PostLocaleUniqueWhere!, filter: PostLocaleWhere, data: PostLocaleUpdateInput!): PostLocaleUpdateResult!
669
- upsertPostLocale(by: PostLocaleUniqueWhere!, filter: PostLocaleWhere, update: PostLocaleUpdateInput!, create: PostLocaleCreateInput!): PostLocaleUpsertResult!
670
- createPost(data: PostCreateInput!): PostCreateResult!
671
- deletePost(by: PostUniqueWhere!, filter: PostWhere): PostDeleteResult!
672
- updatePost(by: PostUniqueWhere!, filter: PostWhere, data: PostUpdateInput!): PostUpdateResult!
673
- upsertPost(by: PostUniqueWhere!, filter: PostWhere, update: PostUpdateInput!, create: PostCreateInput!): PostUpsertResult!
674
- transaction(options: MutationTransactionOptions): MutationTransaction!
675
- query: Query!
676
- }
677
-
678
- type AuthorCreateResult implements MutationResult {
679
- ok: Boolean!
680
- errorMessage: String
681
- errors: [_MutationError!]!
682
- node: Author
683
- validation: _ValidationResult!
684
- }
685
-
686
- interface MutationResult {
687
- ok: Boolean!
688
- errorMessage: String
689
- errors: [_MutationError!]!
690
- }
691
-
692
- type _MutationError {
693
- path: [_PathFragment!]! @deprecated(reason: "Use `paths`.")
694
- paths: [[_PathFragment!]!]!
695
- type: _MutationErrorType!
696
- message: String
697
- }
698
-
699
- enum _MutationErrorType {
700
- NotNullConstraintViolation
701
- UniqueConstraintViolation
702
- ForeignKeyConstraintViolation
703
- NotFoundOrDenied
704
- NonUniqueWhereInput
705
- InvalidDataInput
706
- SqlError
707
- }
708
-
709
- type AuthorDeleteResult implements MutationResult {
710
- ok: Boolean!
711
- errorMessage: String
712
- errors: [_MutationError!]!
713
- node: Author
714
- }
715
-
716
- type AuthorUpdateResult implements MutationResult {
717
- ok: Boolean!
718
- errorMessage: String
719
- errors: [_MutationError!]!
720
- node: Author
721
- validation: _ValidationResult!
722
- }
723
-
724
- type AuthorUpsertResult implements MutationResult {
725
- ok: Boolean!
726
- errorMessage: String
727
- errors: [_MutationError!]!
728
- node: Author
729
- validation: _ValidationResult!
730
- }
731
-
732
- type CategoryCreateResult implements MutationResult {
733
- ok: Boolean!
734
- errorMessage: String
735
- errors: [_MutationError!]!
736
- node: Category
737
- validation: _ValidationResult!
738
- }
739
-
740
- type CategoryDeleteResult implements MutationResult {
741
- ok: Boolean!
742
- errorMessage: String
743
- errors: [_MutationError!]!
744
- node: Category
745
- }
746
-
747
- type CategoryUpdateResult implements MutationResult {
748
- ok: Boolean!
749
- errorMessage: String
750
- errors: [_MutationError!]!
751
- node: Category
752
- validation: _ValidationResult!
753
- }
754
-
755
- type CategoryUpsertResult implements MutationResult {
756
- ok: Boolean!
757
- errorMessage: String
758
- errors: [_MutationError!]!
759
- node: Category
760
- validation: _ValidationResult!
761
- }
762
-
763
- type PostLocaleCreateResult implements MutationResult {
764
- ok: Boolean!
765
- errorMessage: String
766
- errors: [_MutationError!]!
767
- node: PostLocale
768
- validation: _ValidationResult!
769
- }
770
-
771
- type PostLocaleDeleteResult implements MutationResult {
772
- ok: Boolean!
773
- errorMessage: String
774
- errors: [_MutationError!]!
775
- node: PostLocale
776
- }
777
-
778
- type PostLocaleUpdateResult implements MutationResult {
779
- ok: Boolean!
780
- errorMessage: String
781
- errors: [_MutationError!]!
782
- node: PostLocale
783
- validation: _ValidationResult!
784
- }
785
-
786
- type PostLocaleUpsertResult implements MutationResult {
787
- ok: Boolean!
788
- errorMessage: String
789
- errors: [_MutationError!]!
790
- node: PostLocale
791
- validation: _ValidationResult!
792
- }
793
-
794
- type PostCreateResult implements MutationResult {
795
- ok: Boolean!
796
- errorMessage: String
797
- errors: [_MutationError!]!
798
- node: Post
799
- validation: _ValidationResult!
800
- }
801
-
802
- type PostDeleteResult implements MutationResult {
803
- ok: Boolean!
804
- errorMessage: String
805
- errors: [_MutationError!]!
806
- node: Post
807
- }
808
-
809
- type PostUpdateResult implements MutationResult {
810
- ok: Boolean!
811
- errorMessage: String
812
- errors: [_MutationError!]!
813
- node: Post
814
- validation: _ValidationResult!
815
- }
816
-
817
- type PostUpsertResult implements MutationResult {
818
- ok: Boolean!
819
- errorMessage: String
820
- errors: [_MutationError!]!
821
- node: Post
822
- validation: _ValidationResult!
823
- }
824
-
825
- type MutationTransaction {
826
- ok: Boolean!
827
- errorMessage: String
828
- errors: [_MutationError!]!
829
- validation: _ValidationResult!
830
- createAuthor(data: AuthorCreateInput!): AuthorCreateResult!
831
- deleteAuthor(by: AuthorUniqueWhere!, filter: AuthorWhere): AuthorDeleteResult!
832
- updateAuthor(by: AuthorUniqueWhere!, filter: AuthorWhere, data: AuthorUpdateInput!): AuthorUpdateResult!
833
- upsertAuthor(by: AuthorUniqueWhere!, filter: AuthorWhere, update: AuthorUpdateInput!, create: AuthorCreateInput!): AuthorUpsertResult!
834
- createCategory(data: CategoryCreateInput!): CategoryCreateResult!
835
- deleteCategory(by: CategoryUniqueWhere!, filter: CategoryWhere): CategoryDeleteResult!
836
- updateCategory(by: CategoryUniqueWhere!, filter: CategoryWhere, data: CategoryUpdateInput!): CategoryUpdateResult!
837
- upsertCategory(by: CategoryUniqueWhere!, filter: CategoryWhere, update: CategoryUpdateInput!, create: CategoryCreateInput!): CategoryUpsertResult!
838
- createPostLocale(data: PostLocaleCreateInput!): PostLocaleCreateResult!
839
- deletePostLocale(by: PostLocaleUniqueWhere!, filter: PostLocaleWhere): PostLocaleDeleteResult!
840
- updatePostLocale(by: PostLocaleUniqueWhere!, filter: PostLocaleWhere, data: PostLocaleUpdateInput!): PostLocaleUpdateResult!
841
- upsertPostLocale(by: PostLocaleUniqueWhere!, filter: PostLocaleWhere, update: PostLocaleUpdateInput!, create: PostLocaleCreateInput!): PostLocaleUpsertResult!
842
- createPost(data: PostCreateInput!): PostCreateResult!
843
- deletePost(by: PostUniqueWhere!, filter: PostWhere): PostDeleteResult!
844
- updatePost(by: PostUniqueWhere!, filter: PostWhere, data: PostUpdateInput!): PostUpdateResult!
845
- upsertPost(by: PostUniqueWhere!, filter: PostWhere, update: PostUpdateInput!, create: PostCreateInput!): PostUpsertResult!
846
- query: Query
847
- }
848
-
849
- input MutationTransactionOptions {
850
- deferForeignKeyConstraints: Boolean
851
- }