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

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,309 +0,0 @@
1
- type Query {
2
- getOneHasManyEntity(by: OneHasManyEntityUniqueWhere!, filter: OneHasManyEntityWhere): OneHasManyEntity
3
- listOneHasManyEntity(filter: OneHasManyEntityWhere, orderBy: [OneHasManyEntityOrderBy!], offset: Int, limit: Int): [OneHasManyEntity!]!
4
- paginateOneHasManyEntity(filter: OneHasManyEntityWhere, orderBy: [OneHasManyEntityOrderBy!], skip: Int, first: Int): OneHasManyEntityConnection!
5
- validateUpdateOneHasManyEntity(by: OneHasManyEntityUniqueWhere!, data: OneHasManyEntityUpdateInput!): _ValidationResult!
6
- getRoot(by: RootUniqueWhere!, filter: RootWhere): Root
7
- listRoot(filter: RootWhere, orderBy: [RootOrderBy!], offset: Int, limit: Int): [Root!]!
8
- paginateRoot(filter: RootWhere, orderBy: [RootOrderBy!], skip: Int, first: Int): RootConnection!
9
- validateUpdateRoot(by: RootUniqueWhere!, data: RootUpdateInput!): _ValidationResult!
10
- transaction: QueryTransaction
11
- _info: Info
12
- }
13
-
14
- type OneHasManyEntity {
15
- _meta: OneHasManyEntityMeta
16
- id: UUID!
17
- a: String
18
- r2(filter: RootWhere): Root
19
- }
20
-
21
- type OneHasManyEntityMeta {
22
- id: FieldMeta
23
- a: FieldMeta
24
- r2: FieldMeta
25
- }
26
-
27
- type FieldMeta {
28
- readable: Boolean
29
- updatable: Boolean
30
- }
31
-
32
- scalar UUID
33
-
34
- type Root {
35
- _meta: RootMeta
36
- id: UUID!
37
- r(filter: OneHasManyEntityWhere, orderBy: [OneHasManyEntityOrderBy!], offset: Int, limit: Int): [OneHasManyEntity!]!
38
- paginateR(filter: OneHasManyEntityWhere, orderBy: [OneHasManyEntityOrderBy!], skip: Int, first: Int): OneHasManyEntityConnection!
39
- }
40
-
41
- type RootMeta {
42
- id: FieldMeta
43
- r: FieldMeta
44
- }
45
-
46
- input OneHasManyEntityWhere {
47
- id: UUIDCondition
48
- a: StringCondition
49
- r2: RootWhere
50
- and: [OneHasManyEntityWhere]
51
- or: [OneHasManyEntityWhere]
52
- not: OneHasManyEntityWhere
53
- }
54
-
55
- input UUIDCondition {
56
- and: [UUIDCondition!]
57
- or: [UUIDCondition!]
58
- not: UUIDCondition
59
- null: Boolean
60
- isNull: Boolean
61
- eq: UUID
62
- notEq: UUID
63
- in: [UUID!]
64
- notIn: [UUID!]
65
- lt: UUID
66
- lte: UUID
67
- gt: UUID
68
- gte: UUID
69
- }
70
-
71
- input StringCondition {
72
- and: [StringCondition!]
73
- or: [StringCondition!]
74
- not: StringCondition
75
- null: Boolean
76
- isNull: Boolean
77
- eq: String
78
- notEq: String
79
- in: [String!]
80
- notIn: [String!]
81
- lt: String
82
- lte: String
83
- gt: String
84
- gte: String
85
- contains: String
86
- startsWith: String
87
- endsWith: String
88
- containsCI: String
89
- startsWithCI: String
90
- endsWithCI: String
91
- }
92
-
93
- input RootWhere {
94
- id: UUIDCondition
95
- r: OneHasManyEntityWhere
96
- and: [RootWhere]
97
- or: [RootWhere]
98
- not: RootWhere
99
- }
100
-
101
- input OneHasManyEntityOrderBy {
102
- _random: Boolean
103
- _randomSeeded: Int
104
- id: OrderDirection
105
- a: OrderDirection
106
- r2: RootOrderBy
107
- }
108
-
109
- enum OrderDirection {
110
- asc
111
- desc
112
- ascNullsFirst
113
- descNullsLast
114
- }
115
-
116
- input RootOrderBy {
117
- _random: Boolean
118
- _randomSeeded: Int
119
- id: OrderDirection
120
- }
121
-
122
- type OneHasManyEntityConnection {
123
- pageInfo: PageInfo!
124
- edges: [OneHasManyEntityEdge!]!
125
- }
126
-
127
- type PageInfo {
128
- totalCount: Int!
129
- }
130
-
131
- type OneHasManyEntityEdge {
132
- node: OneHasManyEntity!
133
- }
134
-
135
- input OneHasManyEntityUniqueWhere {
136
- id: UUID
137
- }
138
-
139
- type _ValidationResult {
140
- valid: Boolean!
141
- errors: [_ValidationError!]!
142
- }
143
-
144
- type _ValidationError {
145
- path: [_PathFragment!]!
146
- message: _ValidationMessage!
147
- }
148
-
149
- union _PathFragment = _FieldPathFragment | _IndexPathFragment
150
-
151
- type _FieldPathFragment {
152
- field: String!
153
- }
154
-
155
- type _IndexPathFragment {
156
- index: Int!
157
- alias: String
158
- }
159
-
160
- type _ValidationMessage {
161
- text: String!
162
- }
163
-
164
- input OneHasManyEntityUpdateInput {
165
- a: String
166
- r2: OneHasManyEntityUpdateR2EntityRelationInput
167
- _dummy_field_: Boolean
168
- }
169
-
170
- input OneHasManyEntityUpdateR2EntityRelationInput {
171
- connect: RootUniqueWhere
172
- update: RootWithoutRUpdateInput
173
- disconnect: Boolean
174
- delete: Boolean
175
- }
176
-
177
- input RootUniqueWhere {
178
- id: UUID
179
- r: OneHasManyEntityUniqueWhere
180
- }
181
-
182
- input RootWithoutRUpdateInput {
183
- _dummy_field_: Boolean
184
- }
185
-
186
- type RootConnection {
187
- pageInfo: PageInfo!
188
- edges: [RootEdge!]!
189
- }
190
-
191
- type RootEdge {
192
- node: Root!
193
- }
194
-
195
- input RootUpdateInput {
196
- r: [RootUpdateREntityRelationInput!]
197
- _dummy_field_: Boolean
198
- }
199
-
200
- input RootUpdateREntityRelationInput {
201
- update: RootUpdateRRelationInput
202
- connect: OneHasManyEntityUniqueWhere
203
- disconnect: OneHasManyEntityUniqueWhere
204
- delete: OneHasManyEntityUniqueWhere
205
- alias: String
206
- }
207
-
208
- input RootUpdateRRelationInput {
209
- by: OneHasManyEntityUniqueWhere
210
- data: OneHasManyEntityWithoutR2UpdateInput
211
- }
212
-
213
- input OneHasManyEntityWithoutR2UpdateInput {
214
- a: String
215
- _dummy_field_: Boolean
216
- }
217
-
218
- type QueryTransaction {
219
- getOneHasManyEntity(by: OneHasManyEntityUniqueWhere!, filter: OneHasManyEntityWhere): OneHasManyEntity
220
- listOneHasManyEntity(filter: OneHasManyEntityWhere, orderBy: [OneHasManyEntityOrderBy!], offset: Int, limit: Int): [OneHasManyEntity!]!
221
- paginateOneHasManyEntity(filter: OneHasManyEntityWhere, orderBy: [OneHasManyEntityOrderBy!], skip: Int, first: Int): OneHasManyEntityConnection!
222
- validateUpdateOneHasManyEntity(by: OneHasManyEntityUniqueWhere!, data: OneHasManyEntityUpdateInput!): _ValidationResult!
223
- getRoot(by: RootUniqueWhere!, filter: RootWhere): Root
224
- listRoot(filter: RootWhere, orderBy: [RootOrderBy!], offset: Int, limit: Int): [Root!]!
225
- paginateRoot(filter: RootWhere, orderBy: [RootOrderBy!], skip: Int, first: Int): RootConnection!
226
- validateUpdateRoot(by: RootUniqueWhere!, data: RootUpdateInput!): _ValidationResult!
227
- }
228
-
229
- type Info {
230
- description: String
231
- }
232
-
233
- type Mutation {
234
- deleteOneHasManyEntity(by: OneHasManyEntityUniqueWhere!, filter: OneHasManyEntityWhere): OneHasManyEntityDeleteResult!
235
- updateOneHasManyEntity(by: OneHasManyEntityUniqueWhere!, filter: OneHasManyEntityWhere, data: OneHasManyEntityUpdateInput!): OneHasManyEntityUpdateResult!
236
- deleteRoot(by: RootUniqueWhere!, filter: RootWhere): RootDeleteResult!
237
- updateRoot(by: RootUniqueWhere!, filter: RootWhere, data: RootUpdateInput!): RootUpdateResult!
238
- transaction(options: MutationTransactionOptions): MutationTransaction!
239
- query: Query!
240
- }
241
-
242
- type OneHasManyEntityDeleteResult implements MutationResult {
243
- ok: Boolean!
244
- errorMessage: String
245
- errors: [_MutationError!]!
246
- node: OneHasManyEntity
247
- }
248
-
249
- interface MutationResult {
250
- ok: Boolean!
251
- errorMessage: String
252
- errors: [_MutationError!]!
253
- }
254
-
255
- type _MutationError {
256
- path: [_PathFragment!]! @deprecated(reason: "Use `paths`.")
257
- paths: [[_PathFragment!]!]!
258
- type: _MutationErrorType!
259
- message: String
260
- }
261
-
262
- enum _MutationErrorType {
263
- NotNullConstraintViolation
264
- UniqueConstraintViolation
265
- ForeignKeyConstraintViolation
266
- NotFoundOrDenied
267
- NonUniqueWhereInput
268
- InvalidDataInput
269
- SqlError
270
- }
271
-
272
- type OneHasManyEntityUpdateResult implements MutationResult {
273
- ok: Boolean!
274
- errorMessage: String
275
- errors: [_MutationError!]!
276
- node: OneHasManyEntity
277
- validation: _ValidationResult!
278
- }
279
-
280
- type RootDeleteResult implements MutationResult {
281
- ok: Boolean!
282
- errorMessage: String
283
- errors: [_MutationError!]!
284
- node: Root
285
- }
286
-
287
- type RootUpdateResult implements MutationResult {
288
- ok: Boolean!
289
- errorMessage: String
290
- errors: [_MutationError!]!
291
- node: Root
292
- validation: _ValidationResult!
293
- }
294
-
295
- type MutationTransaction {
296
- ok: Boolean!
297
- errorMessage: String
298
- errors: [_MutationError!]!
299
- validation: _ValidationResult!
300
- deleteOneHasManyEntity(by: OneHasManyEntityUniqueWhere!, filter: OneHasManyEntityWhere): OneHasManyEntityDeleteResult!
301
- updateOneHasManyEntity(by: OneHasManyEntityUniqueWhere!, filter: OneHasManyEntityWhere, data: OneHasManyEntityUpdateInput!): OneHasManyEntityUpdateResult!
302
- deleteRoot(by: RootUniqueWhere!, filter: RootWhere): RootDeleteResult!
303
- updateRoot(by: RootUniqueWhere!, filter: RootWhere, data: RootUpdateInput!): RootUpdateResult!
304
- query: Query
305
- }
306
-
307
- input MutationTransactionOptions {
308
- deferForeignKeyConstraints: Boolean
309
- }
@@ -1,402 +0,0 @@
1
- type Query {
2
- getOneHasManyEntity(by: OneHasManyEntityUniqueWhere!, filter: OneHasManyEntityWhere): OneHasManyEntity
3
- listOneHasManyEntity(filter: OneHasManyEntityWhere, orderBy: [OneHasManyEntityOrderBy!], offset: Int, limit: Int): [OneHasManyEntity!]!
4
- paginateOneHasManyEntity(filter: OneHasManyEntityWhere, orderBy: [OneHasManyEntityOrderBy!], skip: Int, first: Int): OneHasManyEntityConnection!
5
- validateCreateOneHasManyEntity(data: OneHasManyEntityCreateInput!): _ValidationResult!
6
- validateUpdateOneHasManyEntity(by: OneHasManyEntityUniqueWhere!, data: OneHasManyEntityUpdateInput!): _ValidationResult!
7
- getRoot(by: RootUniqueWhere!, filter: RootWhere): Root
8
- listRoot(filter: RootWhere, orderBy: [RootOrderBy!], offset: Int, limit: Int): [Root!]!
9
- paginateRoot(filter: RootWhere, orderBy: [RootOrderBy!], skip: Int, first: Int): RootConnection!
10
- validateCreateRoot(data: RootCreateInput!): _ValidationResult!
11
- validateUpdateRoot(by: RootUniqueWhere!, data: RootUpdateInput!): _ValidationResult!
12
- transaction: QueryTransaction
13
- _info: Info
14
- }
15
-
16
- type OneHasManyEntity {
17
- _meta: OneHasManyEntityMeta
18
- id: UUID!
19
- a: String
20
- r2(filter: RootWhere): Root
21
- }
22
-
23
- type OneHasManyEntityMeta {
24
- id: FieldMeta
25
- a: FieldMeta
26
- r2: FieldMeta
27
- }
28
-
29
- type FieldMeta {
30
- readable: Boolean
31
- updatable: Boolean
32
- }
33
-
34
- scalar UUID
35
-
36
- type Root {
37
- _meta: RootMeta
38
- id: UUID!
39
- r(filter: OneHasManyEntityWhere, orderBy: [OneHasManyEntityOrderBy!], offset: Int, limit: Int): [OneHasManyEntity!]!
40
- paginateR(filter: OneHasManyEntityWhere, orderBy: [OneHasManyEntityOrderBy!], skip: Int, first: Int): OneHasManyEntityConnection!
41
- }
42
-
43
- type RootMeta {
44
- id: FieldMeta
45
- r: FieldMeta
46
- }
47
-
48
- input OneHasManyEntityWhere {
49
- id: UUIDCondition
50
- a: StringCondition
51
- r2: RootWhere
52
- and: [OneHasManyEntityWhere]
53
- or: [OneHasManyEntityWhere]
54
- not: OneHasManyEntityWhere
55
- }
56
-
57
- input UUIDCondition {
58
- and: [UUIDCondition!]
59
- or: [UUIDCondition!]
60
- not: UUIDCondition
61
- null: Boolean
62
- isNull: Boolean
63
- eq: UUID
64
- notEq: UUID
65
- in: [UUID!]
66
- notIn: [UUID!]
67
- lt: UUID
68
- lte: UUID
69
- gt: UUID
70
- gte: UUID
71
- }
72
-
73
- input StringCondition {
74
- and: [StringCondition!]
75
- or: [StringCondition!]
76
- not: StringCondition
77
- null: Boolean
78
- isNull: Boolean
79
- eq: String
80
- notEq: String
81
- in: [String!]
82
- notIn: [String!]
83
- lt: String
84
- lte: String
85
- gt: String
86
- gte: String
87
- contains: String
88
- startsWith: String
89
- endsWith: String
90
- containsCI: String
91
- startsWithCI: String
92
- endsWithCI: String
93
- }
94
-
95
- input RootWhere {
96
- id: UUIDCondition
97
- r: OneHasManyEntityWhere
98
- and: [RootWhere]
99
- or: [RootWhere]
100
- not: RootWhere
101
- }
102
-
103
- input OneHasManyEntityOrderBy {
104
- _random: Boolean
105
- _randomSeeded: Int
106
- id: OrderDirection
107
- a: OrderDirection
108
- r2: RootOrderBy
109
- }
110
-
111
- enum OrderDirection {
112
- asc
113
- desc
114
- ascNullsFirst
115
- descNullsLast
116
- }
117
-
118
- input RootOrderBy {
119
- _random: Boolean
120
- _randomSeeded: Int
121
- id: OrderDirection
122
- }
123
-
124
- type OneHasManyEntityConnection {
125
- pageInfo: PageInfo!
126
- edges: [OneHasManyEntityEdge!]!
127
- }
128
-
129
- type PageInfo {
130
- totalCount: Int!
131
- }
132
-
133
- type OneHasManyEntityEdge {
134
- node: OneHasManyEntity!
135
- }
136
-
137
- input OneHasManyEntityUniqueWhere {
138
- id: UUID
139
- }
140
-
141
- type _ValidationResult {
142
- valid: Boolean!
143
- errors: [_ValidationError!]!
144
- }
145
-
146
- type _ValidationError {
147
- path: [_PathFragment!]!
148
- message: _ValidationMessage!
149
- }
150
-
151
- union _PathFragment = _FieldPathFragment | _IndexPathFragment
152
-
153
- type _FieldPathFragment {
154
- field: String!
155
- }
156
-
157
- type _IndexPathFragment {
158
- index: Int!
159
- alias: String
160
- }
161
-
162
- type _ValidationMessage {
163
- text: String!
164
- }
165
-
166
- input OneHasManyEntityCreateInput {
167
- a: String
168
- r2: OneHasManyEntityCreateR2EntityRelationInput
169
- _dummy_field_: Boolean
170
- }
171
-
172
- input OneHasManyEntityCreateR2EntityRelationInput {
173
- connect: RootUniqueWhere
174
- create: RootWithoutRCreateInput
175
- connectOrCreate: OneHasManyEntityConnectOrCreateR2RelationInput
176
- }
177
-
178
- input RootUniqueWhere {
179
- id: UUID
180
- r: OneHasManyEntityUniqueWhere
181
- }
182
-
183
- input RootWithoutRCreateInput {
184
- _dummy_field_: Boolean
185
- }
186
-
187
- input OneHasManyEntityConnectOrCreateR2RelationInput {
188
- connect: RootUniqueWhere
189
- create: RootWithoutRCreateInput
190
- }
191
-
192
- input OneHasManyEntityUpdateInput {
193
- a: String
194
- r2: OneHasManyEntityUpdateR2EntityRelationInput
195
- _dummy_field_: Boolean
196
- }
197
-
198
- input OneHasManyEntityUpdateR2EntityRelationInput {
199
- connect: RootUniqueWhere
200
- create: RootWithoutRCreateInput
201
- connectOrCreate: OneHasManyEntityConnectOrCreateR2RelationInput
202
- update: RootWithoutRUpdateInput
203
- upsert: OneHasManyEntityUpsertR2RelationInput
204
- disconnect: Boolean
205
- delete: Boolean
206
- }
207
-
208
- input RootWithoutRUpdateInput {
209
- _dummy_field_: Boolean
210
- }
211
-
212
- input OneHasManyEntityUpsertR2RelationInput {
213
- update: RootWithoutRUpdateInput
214
- create: RootWithoutRCreateInput
215
- }
216
-
217
- type RootConnection {
218
- pageInfo: PageInfo!
219
- edges: [RootEdge!]!
220
- }
221
-
222
- type RootEdge {
223
- node: Root!
224
- }
225
-
226
- input RootCreateInput {
227
- r: [RootCreateREntityRelationInput!]
228
- _dummy_field_: Boolean
229
- }
230
-
231
- input RootCreateREntityRelationInput {
232
- connect: OneHasManyEntityUniqueWhere
233
- create: OneHasManyEntityWithoutR2CreateInput
234
- connectOrCreate: RootConnectOrCreateRRelationInput
235
- alias: String
236
- }
237
-
238
- input OneHasManyEntityWithoutR2CreateInput {
239
- a: String
240
- _dummy_field_: Boolean
241
- }
242
-
243
- input RootConnectOrCreateRRelationInput {
244
- connect: OneHasManyEntityUniqueWhere
245
- create: OneHasManyEntityWithoutR2CreateInput
246
- }
247
-
248
- input RootUpdateInput {
249
- r: [RootUpdateREntityRelationInput!]
250
- _dummy_field_: Boolean
251
- }
252
-
253
- input RootUpdateREntityRelationInput {
254
- create: OneHasManyEntityWithoutR2CreateInput
255
- update: RootUpdateRRelationInput
256
- upsert: RootUpsertRRelationInput
257
- connect: OneHasManyEntityUniqueWhere
258
- disconnect: OneHasManyEntityUniqueWhere
259
- alias: String
260
- }
261
-
262
- input RootUpdateRRelationInput {
263
- by: OneHasManyEntityUniqueWhere
264
- data: OneHasManyEntityWithoutR2UpdateInput
265
- }
266
-
267
- input OneHasManyEntityWithoutR2UpdateInput {
268
- a: String
269
- _dummy_field_: Boolean
270
- }
271
-
272
- input RootUpsertRRelationInput {
273
- by: OneHasManyEntityUniqueWhere
274
- update: OneHasManyEntityWithoutR2UpdateInput
275
- create: OneHasManyEntityWithoutR2CreateInput
276
- }
277
-
278
- type QueryTransaction {
279
- getOneHasManyEntity(by: OneHasManyEntityUniqueWhere!, filter: OneHasManyEntityWhere): OneHasManyEntity
280
- listOneHasManyEntity(filter: OneHasManyEntityWhere, orderBy: [OneHasManyEntityOrderBy!], offset: Int, limit: Int): [OneHasManyEntity!]!
281
- paginateOneHasManyEntity(filter: OneHasManyEntityWhere, orderBy: [OneHasManyEntityOrderBy!], skip: Int, first: Int): OneHasManyEntityConnection!
282
- validateCreateOneHasManyEntity(data: OneHasManyEntityCreateInput!): _ValidationResult!
283
- validateUpdateOneHasManyEntity(by: OneHasManyEntityUniqueWhere!, data: OneHasManyEntityUpdateInput!): _ValidationResult!
284
- getRoot(by: RootUniqueWhere!, filter: RootWhere): Root
285
- listRoot(filter: RootWhere, orderBy: [RootOrderBy!], offset: Int, limit: Int): [Root!]!
286
- paginateRoot(filter: RootWhere, orderBy: [RootOrderBy!], skip: Int, first: Int): RootConnection!
287
- validateCreateRoot(data: RootCreateInput!): _ValidationResult!
288
- validateUpdateRoot(by: RootUniqueWhere!, data: RootUpdateInput!): _ValidationResult!
289
- }
290
-
291
- type Info {
292
- description: String
293
- }
294
-
295
- type Mutation {
296
- createOneHasManyEntity(data: OneHasManyEntityCreateInput!): OneHasManyEntityCreateResult!
297
- updateOneHasManyEntity(by: OneHasManyEntityUniqueWhere!, filter: OneHasManyEntityWhere, data: OneHasManyEntityUpdateInput!): OneHasManyEntityUpdateResult!
298
- upsertOneHasManyEntity(by: OneHasManyEntityUniqueWhere!, filter: OneHasManyEntityWhere, update: OneHasManyEntityUpdateInput!, create: OneHasManyEntityCreateInput!): OneHasManyEntityUpsertResult!
299
- createRoot(data: RootCreateInput!): RootCreateResult!
300
- deleteRoot(by: RootUniqueWhere!, filter: RootWhere): RootDeleteResult!
301
- updateRoot(by: RootUniqueWhere!, filter: RootWhere, data: RootUpdateInput!): RootUpdateResult!
302
- upsertRoot(by: RootUniqueWhere!, filter: RootWhere, update: RootUpdateInput!, create: RootCreateInput!): RootUpsertResult!
303
- transaction(options: MutationTransactionOptions): MutationTransaction!
304
- query: Query!
305
- }
306
-
307
- type OneHasManyEntityCreateResult implements MutationResult {
308
- ok: Boolean!
309
- errorMessage: String
310
- errors: [_MutationError!]!
311
- node: OneHasManyEntity
312
- validation: _ValidationResult!
313
- }
314
-
315
- interface MutationResult {
316
- ok: Boolean!
317
- errorMessage: String
318
- errors: [_MutationError!]!
319
- }
320
-
321
- type _MutationError {
322
- path: [_PathFragment!]! @deprecated(reason: "Use `paths`.")
323
- paths: [[_PathFragment!]!]!
324
- type: _MutationErrorType!
325
- message: String
326
- }
327
-
328
- enum _MutationErrorType {
329
- NotNullConstraintViolation
330
- UniqueConstraintViolation
331
- ForeignKeyConstraintViolation
332
- NotFoundOrDenied
333
- NonUniqueWhereInput
334
- InvalidDataInput
335
- SqlError
336
- }
337
-
338
- type OneHasManyEntityUpdateResult implements MutationResult {
339
- ok: Boolean!
340
- errorMessage: String
341
- errors: [_MutationError!]!
342
- node: OneHasManyEntity
343
- validation: _ValidationResult!
344
- }
345
-
346
- type OneHasManyEntityUpsertResult implements MutationResult {
347
- ok: Boolean!
348
- errorMessage: String
349
- errors: [_MutationError!]!
350
- node: OneHasManyEntity
351
- validation: _ValidationResult!
352
- }
353
-
354
- type RootCreateResult implements MutationResult {
355
- ok: Boolean!
356
- errorMessage: String
357
- errors: [_MutationError!]!
358
- node: Root
359
- validation: _ValidationResult!
360
- }
361
-
362
- type RootDeleteResult implements MutationResult {
363
- ok: Boolean!
364
- errorMessage: String
365
- errors: [_MutationError!]!
366
- node: Root
367
- }
368
-
369
- type RootUpdateResult implements MutationResult {
370
- ok: Boolean!
371
- errorMessage: String
372
- errors: [_MutationError!]!
373
- node: Root
374
- validation: _ValidationResult!
375
- }
376
-
377
- type RootUpsertResult implements MutationResult {
378
- ok: Boolean!
379
- errorMessage: String
380
- errors: [_MutationError!]!
381
- node: Root
382
- validation: _ValidationResult!
383
- }
384
-
385
- type MutationTransaction {
386
- ok: Boolean!
387
- errorMessage: String
388
- errors: [_MutationError!]!
389
- validation: _ValidationResult!
390
- createOneHasManyEntity(data: OneHasManyEntityCreateInput!): OneHasManyEntityCreateResult!
391
- updateOneHasManyEntity(by: OneHasManyEntityUniqueWhere!, filter: OneHasManyEntityWhere, data: OneHasManyEntityUpdateInput!): OneHasManyEntityUpdateResult!
392
- upsertOneHasManyEntity(by: OneHasManyEntityUniqueWhere!, filter: OneHasManyEntityWhere, update: OneHasManyEntityUpdateInput!, create: OneHasManyEntityCreateInput!): OneHasManyEntityUpsertResult!
393
- createRoot(data: RootCreateInput!): RootCreateResult!
394
- deleteRoot(by: RootUniqueWhere!, filter: RootWhere): RootDeleteResult!
395
- updateRoot(by: RootUniqueWhere!, filter: RootWhere, data: RootUpdateInput!): RootUpdateResult!
396
- upsertRoot(by: RootUniqueWhere!, filter: RootWhere, update: RootUpdateInput!, create: RootCreateInput!): RootUpsertResult!
397
- query: Query
398
- }
399
-
400
- input MutationTransactionOptions {
401
- deferForeignKeyConstraints: Boolean
402
- }