@contember/engine-content-api 1.3.0-alpha.7 → 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 (146) hide show
  1. package/dist/src/ExecutionContainer.d.ts +8 -5
  2. package/dist/src/ExecutionContainer.d.ts.map +1 -1
  3. package/dist/src/ExecutionContainer.js +7 -6
  4. package/dist/src/ExecutionContainer.js.map +1 -1
  5. package/dist/src/acl/Authorizator.d.ts +1 -1
  6. package/dist/src/acl/Authorizator.d.ts.map +1 -1
  7. package/dist/src/extensions/EntityFieldsProvider.d.ts +1 -1
  8. package/dist/src/extensions/EntityFieldsProvider.d.ts.map +1 -1
  9. package/dist/src/input-validation/InputValidator.d.ts +1 -1
  10. package/dist/src/input-validation/InputValidator.d.ts.map +1 -1
  11. package/dist/src/input-validation/ValidationContext.js +1 -2
  12. package/dist/src/input-validation/ValidationContext.js.map +1 -1
  13. package/dist/src/input-validation/ValidationPath.d.ts +1 -1
  14. package/dist/src/input-validation/ValidationPath.d.ts.map +1 -1
  15. package/dist/src/input-validation/dependencies/DependencyCollector.d.ts +1 -1
  16. package/dist/src/input-validation/dependencies/DependencyCollector.d.ts.map +1 -1
  17. package/dist/src/input-validation/preValidation/CreateInputPreValidationProcessor.d.ts +1 -1
  18. package/dist/src/input-validation/preValidation/CreateInputPreValidationProcessor.d.ts.map +1 -1
  19. package/dist/src/input-validation/preValidation/UpdateInputPreValidationProcessor.d.ts +1 -1
  20. package/dist/src/input-validation/preValidation/UpdateInputPreValidationProcessor.d.ts.map +1 -1
  21. package/dist/src/inputProcessing/UniqueWhereExpander.d.ts +1 -1
  22. package/dist/src/inputProcessing/UniqueWhereExpander.d.ts.map +1 -1
  23. package/dist/src/introspection/content-schema.types.d.ts +22 -22
  24. package/dist/src/introspection/content-schema.types.d.ts.map +1 -1
  25. package/dist/src/introspection/content-schema.types.js +3 -3
  26. package/dist/src/introspection/content-schema.types.js.map +1 -1
  27. package/dist/src/mapper/ColumnValue.d.ts +2 -2
  28. package/dist/src/mapper/ColumnValue.d.ts.map +1 -1
  29. package/dist/src/mapper/DataManipulationBuilder.d.ts +1 -1
  30. package/dist/src/mapper/DataManipulationBuilder.d.ts.map +1 -1
  31. package/dist/src/mapper/ErrorUtils.d.ts +3 -2
  32. package/dist/src/mapper/ErrorUtils.d.ts.map +1 -1
  33. package/dist/src/mapper/ErrorUtils.js +55 -35
  34. package/dist/src/mapper/ErrorUtils.js.map +1 -1
  35. package/dist/src/mapper/EventManager.d.ts +4 -4
  36. package/dist/src/mapper/EventManager.d.ts.map +1 -1
  37. package/dist/src/mapper/JunctionTableManager.d.ts +2 -2
  38. package/dist/src/mapper/JunctionTableManager.d.ts.map +1 -1
  39. package/dist/src/mapper/Mapper.d.ts +3 -1
  40. package/dist/src/mapper/Mapper.d.ts.map +1 -1
  41. package/dist/src/mapper/Mapper.js +9 -6
  42. package/dist/src/mapper/Mapper.js.map +1 -1
  43. package/dist/src/mapper/MapperFactory.d.ts +4 -3
  44. package/dist/src/mapper/MapperFactory.d.ts.map +1 -1
  45. package/dist/src/mapper/MapperFactory.js +3 -2
  46. package/dist/src/mapper/MapperFactory.js.map +1 -1
  47. package/dist/src/mapper/Result.d.ts +7 -6
  48. package/dist/src/mapper/Result.d.ts.map +1 -1
  49. package/dist/src/mapper/Result.js +8 -8
  50. package/dist/src/mapper/Result.js.map +1 -1
  51. package/dist/src/mapper/delete/DeleteExecutor.d.ts.map +1 -1
  52. package/dist/src/mapper/delete/DeleteExecutor.js +3 -0
  53. package/dist/src/mapper/delete/DeleteExecutor.js.map +1 -1
  54. package/dist/src/mapper/delete/helpers.d.ts +3 -3
  55. package/dist/src/mapper/delete/helpers.d.ts.map +1 -1
  56. package/dist/src/mapper/insert/Inserter.d.ts +3 -2
  57. package/dist/src/mapper/insert/Inserter.d.ts.map +1 -1
  58. package/dist/src/mapper/insert/Inserter.js +4 -3
  59. package/dist/src/mapper/insert/Inserter.js.map +1 -1
  60. package/dist/src/mapper/relations/ManyHasManyInputProcessor.d.ts +1 -1
  61. package/dist/src/mapper/relations/ManyHasManyInputProcessor.d.ts.map +1 -1
  62. package/dist/src/mapper/select/Path.js +3 -3
  63. package/dist/src/mapper/select/Path.js.map +1 -1
  64. package/dist/src/mapper/select/RelationFetcher.d.ts +6 -6
  65. package/dist/src/mapper/select/RelationFetcher.d.ts.map +1 -1
  66. package/dist/src/mapper/select/SelectExecutionHandler.d.ts +2 -2
  67. package/dist/src/mapper/select/SelectExecutionHandler.d.ts.map +1 -1
  68. package/dist/src/mapper/select/SelectHydrator.d.ts +7 -7
  69. package/dist/src/mapper/select/SelectHydrator.d.ts.map +1 -1
  70. package/dist/src/mapper/select/WhereBuilder.d.ts +1 -1
  71. package/dist/src/mapper/select/WhereBuilder.d.ts.map +1 -1
  72. package/dist/src/mapper/types.d.ts +1 -1
  73. package/dist/src/mapper/types.d.ts.map +1 -1
  74. package/dist/src/mapper/update/Updater.d.ts +3 -1
  75. package/dist/src/mapper/update/Updater.d.ts.map +1 -1
  76. package/dist/src/mapper/update/Updater.js +3 -2
  77. package/dist/src/mapper/update/Updater.js.map +1 -1
  78. package/dist/src/resolvers/GraphQlQueryAstFactory.d.ts +1 -1
  79. package/dist/src/resolvers/GraphQlQueryAstFactory.d.ts.map +1 -1
  80. package/dist/src/resolvers/MutationResolver.d.ts +5 -3
  81. package/dist/src/resolvers/MutationResolver.d.ts.map +1 -1
  82. package/dist/src/resolvers/MutationResolver.js +3 -2
  83. package/dist/src/resolvers/MutationResolver.js.map +1 -1
  84. package/dist/src/schema/ColumnTypeResolver.d.ts +1 -1
  85. package/dist/src/schema/ColumnTypeResolver.d.ts.map +1 -1
  86. package/dist/src/schema/MutationProvider.d.ts +1 -1
  87. package/dist/src/schema/MutationProvider.d.ts.map +1 -1
  88. package/dist/src/schema/ValidationQueriesProvider.d.ts +1 -1
  89. package/dist/src/schema/ValidationQueriesProvider.d.ts.map +1 -1
  90. package/dist/src/schema/mutations/EntityInputProvider.js +1 -1
  91. package/dist/src/schema/mutations/EntityInputProvider.js.map +1 -1
  92. package/dist/src/tsconfig.tsbuildinfo +1 -1
  93. package/dist/src/utils/Interface.d.ts +1 -1
  94. package/dist/src/utils/Interface.d.ts.map +1 -1
  95. package/dist/src/utils/object.d.ts +2 -2
  96. package/dist/src/utils/object.d.ts.map +1 -1
  97. package/dist/src/utils/uniqueWhereFields.d.ts +1 -1
  98. package/dist/src/utils/uniqueWhereFields.d.ts.map +1 -1
  99. package/dist/src/utils/uniqueWhereFields.js +1 -1
  100. package/dist/src/utils/uniqueWhereFields.js.map +1 -1
  101. package/dist/tests/cases/integration/graphQlRequests/delete/restrictOnDelete.test.js +64 -0
  102. package/dist/tests/cases/integration/graphQlRequests/delete/restrictOnDelete.test.js.map +1 -1
  103. package/dist/tests/cases/integration/graphQlRequests/validation/conditions.test.js +1 -1
  104. package/dist/tests/cases/integration/graphQlRequests/validation/conditions.test.js.map +1 -1
  105. package/dist/tests/cases/integration/graphQlRequests/validation/optionalAssert.test.js +1 -1
  106. package/dist/tests/cases/integration/graphQlRequests/validation/optionalAssert.test.js.map +1 -1
  107. package/dist/tests/cases/integration/graphQlRequests/validation/requiredWhen.test.js +1 -1
  108. package/dist/tests/cases/integration/graphQlRequests/validation/requiredWhen.test.js.map +1 -1
  109. package/dist/tests/cases/integration/graphQlSchema/model.js +2 -3
  110. package/dist/tests/cases/integration/graphQlSchema/model.js.map +1 -1
  111. package/dist/tests/cases/unit/orderbyHelper.test.js +2 -2
  112. package/dist/tests/src/test.d.ts.map +1 -1
  113. package/dist/tests/src/test.js +1 -0
  114. package/dist/tests/src/test.js.map +1 -1
  115. package/dist/tests/src/utils.d.ts +1 -1
  116. package/dist/tests/src/utils.d.ts.map +1 -1
  117. package/dist/tests/tsconfig.tsbuildinfo +1 -1
  118. package/package.json +13 -14
  119. package/src/ExecutionContainer.ts +13 -9
  120. package/src/mapper/ErrorUtils.ts +66 -41
  121. package/src/mapper/Mapper.ts +9 -6
  122. package/src/mapper/MapperFactory.ts +3 -1
  123. package/src/mapper/Result.ts +3 -1
  124. package/src/mapper/delete/DeleteExecutor.ts +4 -0
  125. package/src/mapper/insert/Inserter.ts +4 -4
  126. package/src/mapper/update/Updater.ts +3 -2
  127. package/src/resolvers/MutationResolver.ts +3 -1
  128. package/src/utils/uniqueWhereFields.ts +1 -1
  129. package/tests/cases/integration/graphQlRequests/delete/restrictOnDelete.test.ts +54 -1
  130. package/tests/cases/unit/orderbyHelper.test.ts +2 -2
  131. package/tests/src/test.ts +2 -1
  132. package/dist/tests/cases/integration/graphQlSchema/schema-acl-allowed.gql +0 -420
  133. package/dist/tests/cases/integration/graphQlSchema/schema-acl-create-only.gql +0 -229
  134. package/dist/tests/cases/integration/graphQlSchema/schema-acl-predicate.gql +0 -112
  135. package/dist/tests/cases/integration/graphQlSchema/schema-acl-predicate2.gql +0 -112
  136. package/dist/tests/cases/integration/graphQlSchema/schema-acl-restricted-create.gql +0 -309
  137. package/dist/tests/cases/integration/graphQlSchema/schema-acl-restricted-delete.gql +0 -402
  138. package/dist/tests/cases/integration/graphQlSchema/schema-acl-restricted-update.gql +0 -338
  139. package/dist/tests/cases/integration/graphQlSchema/schema-acl.gql +0 -221
  140. package/dist/tests/cases/integration/graphQlSchema/schema-aliased-type.gql +0 -226
  141. package/dist/tests/cases/integration/graphQlSchema/schema-basic.gql +0 -841
  142. package/dist/tests/cases/integration/graphQlSchema/schema-bug-66.gql +0 -540
  143. package/dist/tests/cases/integration/graphQlSchema/schema-custom-primary.gql +0 -851
  144. package/dist/tests/cases/integration/graphQlSchema/schema-has-many-reduction.gql +0 -453
  145. package/dist/tests/cases/integration/graphQlSchema/schema-new-builder.gql +0 -912
  146. package/dist/tests/cases/integration/graphQlSchema/schema-view-entity.gql +0 -112
@@ -1,112 +0,0 @@
1
- type Query {
2
- getTest(by: TestUniqueWhere!, filter: TestWhere): Test
3
- listTest(filter: TestWhere, orderBy: [TestOrderBy!], offset: Int, limit: Int): [Test!]!
4
- paginateTest(filter: TestWhere, orderBy: [TestOrderBy!], skip: Int, first: Int): TestConnection!
5
- transaction: QueryTransaction
6
- _info: Info
7
- }
8
-
9
- type Test {
10
- _meta: TestMeta
11
- id: UUID!
12
- a: String
13
- }
14
-
15
- type TestMeta {
16
- id: FieldMeta
17
- a: FieldMeta
18
- }
19
-
20
- type FieldMeta {
21
- readable: Boolean
22
- updatable: Boolean
23
- }
24
-
25
- scalar UUID
26
-
27
- input TestUniqueWhere {
28
- id: UUID
29
- }
30
-
31
- input TestWhere {
32
- id: UUIDCondition
33
- a: StringCondition
34
- and: [TestWhere]
35
- or: [TestWhere]
36
- not: TestWhere
37
- }
38
-
39
- input UUIDCondition {
40
- and: [UUIDCondition!]
41
- or: [UUIDCondition!]
42
- not: UUIDCondition
43
- null: Boolean
44
- isNull: Boolean
45
- eq: UUID
46
- notEq: UUID
47
- in: [UUID!]
48
- notIn: [UUID!]
49
- lt: UUID
50
- lte: UUID
51
- gt: UUID
52
- gte: UUID
53
- }
54
-
55
- input StringCondition {
56
- and: [StringCondition!]
57
- or: [StringCondition!]
58
- not: StringCondition
59
- null: Boolean
60
- isNull: Boolean
61
- eq: String
62
- notEq: String
63
- in: [String!]
64
- notIn: [String!]
65
- lt: String
66
- lte: String
67
- gt: String
68
- gte: String
69
- contains: String
70
- startsWith: String
71
- endsWith: String
72
- containsCI: String
73
- startsWithCI: String
74
- endsWithCI: String
75
- }
76
-
77
- input TestOrderBy {
78
- _random: Boolean
79
- _randomSeeded: Int
80
- id: OrderDirection
81
- a: OrderDirection
82
- }
83
-
84
- enum OrderDirection {
85
- asc
86
- desc
87
- ascNullsFirst
88
- descNullsLast
89
- }
90
-
91
- type TestConnection {
92
- pageInfo: PageInfo!
93
- edges: [TestEdge!]!
94
- }
95
-
96
- type PageInfo {
97
- totalCount: Int!
98
- }
99
-
100
- type TestEdge {
101
- node: Test!
102
- }
103
-
104
- type QueryTransaction {
105
- getTest(by: TestUniqueWhere!, filter: TestWhere): Test
106
- listTest(filter: TestWhere, orderBy: [TestOrderBy!], offset: Int, limit: Int): [Test!]!
107
- paginateTest(filter: TestWhere, orderBy: [TestOrderBy!], skip: Int, first: Int): TestConnection!
108
- }
109
-
110
- type Info {
111
- description: String
112
- }
@@ -1,112 +0,0 @@
1
- type Query {
2
- getTest(by: TestUniqueWhere!, filter: TestWhere): Test
3
- listTest(filter: TestWhere, orderBy: [TestOrderBy!], offset: Int, limit: Int): [Test!]!
4
- paginateTest(filter: TestWhere, orderBy: [TestOrderBy!], skip: Int, first: Int): TestConnection!
5
- transaction: QueryTransaction
6
- _info: Info
7
- }
8
-
9
- type Test {
10
- _meta: TestMeta
11
- id: UUID!
12
- a: String!
13
- }
14
-
15
- type TestMeta {
16
- id: FieldMeta
17
- a: FieldMeta
18
- }
19
-
20
- type FieldMeta {
21
- readable: Boolean
22
- updatable: Boolean
23
- }
24
-
25
- scalar UUID
26
-
27
- input TestUniqueWhere {
28
- id: UUID
29
- }
30
-
31
- input TestWhere {
32
- id: UUIDCondition
33
- a: StringCondition
34
- and: [TestWhere]
35
- or: [TestWhere]
36
- not: TestWhere
37
- }
38
-
39
- input UUIDCondition {
40
- and: [UUIDCondition!]
41
- or: [UUIDCondition!]
42
- not: UUIDCondition
43
- null: Boolean
44
- isNull: Boolean
45
- eq: UUID
46
- notEq: UUID
47
- in: [UUID!]
48
- notIn: [UUID!]
49
- lt: UUID
50
- lte: UUID
51
- gt: UUID
52
- gte: UUID
53
- }
54
-
55
- input StringCondition {
56
- and: [StringCondition!]
57
- or: [StringCondition!]
58
- not: StringCondition
59
- null: Boolean
60
- isNull: Boolean
61
- eq: String
62
- notEq: String
63
- in: [String!]
64
- notIn: [String!]
65
- lt: String
66
- lte: String
67
- gt: String
68
- gte: String
69
- contains: String
70
- startsWith: String
71
- endsWith: String
72
- containsCI: String
73
- startsWithCI: String
74
- endsWithCI: String
75
- }
76
-
77
- input TestOrderBy {
78
- _random: Boolean
79
- _randomSeeded: Int
80
- id: OrderDirection
81
- a: OrderDirection
82
- }
83
-
84
- enum OrderDirection {
85
- asc
86
- desc
87
- ascNullsFirst
88
- descNullsLast
89
- }
90
-
91
- type TestConnection {
92
- pageInfo: PageInfo!
93
- edges: [TestEdge!]!
94
- }
95
-
96
- type PageInfo {
97
- totalCount: Int!
98
- }
99
-
100
- type TestEdge {
101
- node: Test!
102
- }
103
-
104
- type QueryTransaction {
105
- getTest(by: TestUniqueWhere!, filter: TestWhere): Test
106
- listTest(filter: TestWhere, orderBy: [TestOrderBy!], offset: Int, limit: Int): [Test!]!
107
- paginateTest(filter: TestWhere, orderBy: [TestOrderBy!], skip: Int, first: Int): TestConnection!
108
- }
109
-
110
- type Info {
111
- description: String
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
- }