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