@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.
- package/dist/src/ExecutionContainer.d.ts +8 -5
- package/dist/src/ExecutionContainer.d.ts.map +1 -1
- package/dist/src/ExecutionContainer.js +7 -6
- package/dist/src/ExecutionContainer.js.map +1 -1
- package/dist/src/acl/Authorizator.d.ts +1 -1
- package/dist/src/acl/Authorizator.d.ts.map +1 -1
- package/dist/src/extensions/EntityFieldsProvider.d.ts +1 -1
- package/dist/src/extensions/EntityFieldsProvider.d.ts.map +1 -1
- package/dist/src/input-validation/InputValidator.d.ts +1 -1
- package/dist/src/input-validation/InputValidator.d.ts.map +1 -1
- package/dist/src/input-validation/ValidationContext.js +1 -2
- package/dist/src/input-validation/ValidationContext.js.map +1 -1
- package/dist/src/input-validation/ValidationPath.d.ts +1 -1
- package/dist/src/input-validation/ValidationPath.d.ts.map +1 -1
- package/dist/src/input-validation/dependencies/DependencyCollector.d.ts +1 -1
- package/dist/src/input-validation/dependencies/DependencyCollector.d.ts.map +1 -1
- package/dist/src/input-validation/preValidation/CreateInputPreValidationProcessor.d.ts +1 -1
- package/dist/src/input-validation/preValidation/CreateInputPreValidationProcessor.d.ts.map +1 -1
- package/dist/src/input-validation/preValidation/UpdateInputPreValidationProcessor.d.ts +1 -1
- package/dist/src/input-validation/preValidation/UpdateInputPreValidationProcessor.d.ts.map +1 -1
- package/dist/src/inputProcessing/UniqueWhereExpander.d.ts +1 -1
- package/dist/src/inputProcessing/UniqueWhereExpander.d.ts.map +1 -1
- package/dist/src/introspection/content-schema.types.d.ts +22 -22
- package/dist/src/introspection/content-schema.types.d.ts.map +1 -1
- package/dist/src/introspection/content-schema.types.js +3 -3
- package/dist/src/introspection/content-schema.types.js.map +1 -1
- package/dist/src/mapper/ColumnValue.d.ts +2 -2
- package/dist/src/mapper/ColumnValue.d.ts.map +1 -1
- package/dist/src/mapper/DataManipulationBuilder.d.ts +1 -1
- package/dist/src/mapper/DataManipulationBuilder.d.ts.map +1 -1
- package/dist/src/mapper/ErrorUtils.d.ts +3 -2
- package/dist/src/mapper/ErrorUtils.d.ts.map +1 -1
- package/dist/src/mapper/ErrorUtils.js +55 -35
- package/dist/src/mapper/ErrorUtils.js.map +1 -1
- package/dist/src/mapper/EventManager.d.ts +4 -4
- package/dist/src/mapper/EventManager.d.ts.map +1 -1
- package/dist/src/mapper/JunctionTableManager.d.ts +2 -2
- package/dist/src/mapper/JunctionTableManager.d.ts.map +1 -1
- package/dist/src/mapper/Mapper.d.ts +3 -1
- package/dist/src/mapper/Mapper.d.ts.map +1 -1
- package/dist/src/mapper/Mapper.js +9 -6
- package/dist/src/mapper/Mapper.js.map +1 -1
- package/dist/src/mapper/MapperFactory.d.ts +4 -3
- package/dist/src/mapper/MapperFactory.d.ts.map +1 -1
- package/dist/src/mapper/MapperFactory.js +3 -2
- package/dist/src/mapper/MapperFactory.js.map +1 -1
- package/dist/src/mapper/Result.d.ts +7 -6
- package/dist/src/mapper/Result.d.ts.map +1 -1
- package/dist/src/mapper/Result.js +8 -8
- package/dist/src/mapper/Result.js.map +1 -1
- package/dist/src/mapper/delete/DeleteExecutor.d.ts.map +1 -1
- package/dist/src/mapper/delete/DeleteExecutor.js +3 -0
- package/dist/src/mapper/delete/DeleteExecutor.js.map +1 -1
- package/dist/src/mapper/delete/helpers.d.ts +3 -3
- package/dist/src/mapper/delete/helpers.d.ts.map +1 -1
- package/dist/src/mapper/insert/Inserter.d.ts +3 -2
- package/dist/src/mapper/insert/Inserter.d.ts.map +1 -1
- package/dist/src/mapper/insert/Inserter.js +4 -3
- package/dist/src/mapper/insert/Inserter.js.map +1 -1
- package/dist/src/mapper/relations/ManyHasManyInputProcessor.d.ts +1 -1
- package/dist/src/mapper/relations/ManyHasManyInputProcessor.d.ts.map +1 -1
- package/dist/src/mapper/select/Path.js +3 -3
- package/dist/src/mapper/select/Path.js.map +1 -1
- package/dist/src/mapper/select/RelationFetcher.d.ts +6 -6
- package/dist/src/mapper/select/RelationFetcher.d.ts.map +1 -1
- package/dist/src/mapper/select/SelectExecutionHandler.d.ts +2 -2
- package/dist/src/mapper/select/SelectExecutionHandler.d.ts.map +1 -1
- package/dist/src/mapper/select/SelectHydrator.d.ts +7 -7
- package/dist/src/mapper/select/SelectHydrator.d.ts.map +1 -1
- package/dist/src/mapper/select/WhereBuilder.d.ts +1 -1
- package/dist/src/mapper/select/WhereBuilder.d.ts.map +1 -1
- package/dist/src/mapper/types.d.ts +1 -1
- package/dist/src/mapper/types.d.ts.map +1 -1
- package/dist/src/mapper/update/Updater.d.ts +3 -1
- package/dist/src/mapper/update/Updater.d.ts.map +1 -1
- package/dist/src/mapper/update/Updater.js +3 -2
- package/dist/src/mapper/update/Updater.js.map +1 -1
- package/dist/src/resolvers/GraphQlQueryAstFactory.d.ts +1 -1
- package/dist/src/resolvers/GraphQlQueryAstFactory.d.ts.map +1 -1
- package/dist/src/resolvers/MutationResolver.d.ts +5 -3
- package/dist/src/resolvers/MutationResolver.d.ts.map +1 -1
- package/dist/src/resolvers/MutationResolver.js +3 -2
- package/dist/src/resolvers/MutationResolver.js.map +1 -1
- package/dist/src/schema/ColumnTypeResolver.d.ts +1 -1
- package/dist/src/schema/ColumnTypeResolver.d.ts.map +1 -1
- package/dist/src/schema/MutationProvider.d.ts +1 -1
- package/dist/src/schema/MutationProvider.d.ts.map +1 -1
- package/dist/src/schema/ValidationQueriesProvider.d.ts +1 -1
- package/dist/src/schema/ValidationQueriesProvider.d.ts.map +1 -1
- package/dist/src/schema/mutations/EntityInputProvider.js +1 -1
- package/dist/src/schema/mutations/EntityInputProvider.js.map +1 -1
- package/dist/src/tsconfig.tsbuildinfo +1 -1
- package/dist/src/utils/Interface.d.ts +1 -1
- package/dist/src/utils/Interface.d.ts.map +1 -1
- package/dist/src/utils/object.d.ts +2 -2
- package/dist/src/utils/object.d.ts.map +1 -1
- package/dist/src/utils/uniqueWhereFields.d.ts +1 -1
- package/dist/src/utils/uniqueWhereFields.d.ts.map +1 -1
- package/dist/src/utils/uniqueWhereFields.js +1 -1
- package/dist/src/utils/uniqueWhereFields.js.map +1 -1
- package/dist/tests/cases/integration/graphQlRequests/delete/restrictOnDelete.test.js +64 -0
- package/dist/tests/cases/integration/graphQlRequests/delete/restrictOnDelete.test.js.map +1 -1
- package/dist/tests/cases/integration/graphQlRequests/validation/conditions.test.js +1 -1
- package/dist/tests/cases/integration/graphQlRequests/validation/conditions.test.js.map +1 -1
- package/dist/tests/cases/integration/graphQlRequests/validation/optionalAssert.test.js +1 -1
- package/dist/tests/cases/integration/graphQlRequests/validation/optionalAssert.test.js.map +1 -1
- package/dist/tests/cases/integration/graphQlRequests/validation/requiredWhen.test.js +1 -1
- package/dist/tests/cases/integration/graphQlRequests/validation/requiredWhen.test.js.map +1 -1
- package/dist/tests/cases/integration/graphQlSchema/model.js +2 -3
- package/dist/tests/cases/integration/graphQlSchema/model.js.map +1 -1
- package/dist/tests/cases/unit/orderbyHelper.test.js +2 -2
- package/dist/tests/src/test.d.ts.map +1 -1
- package/dist/tests/src/test.js +1 -0
- package/dist/tests/src/test.js.map +1 -1
- package/dist/tests/src/utils.d.ts +1 -1
- package/dist/tests/src/utils.d.ts.map +1 -1
- package/dist/tests/tsconfig.tsbuildinfo +1 -1
- package/package.json +13 -14
- package/src/ExecutionContainer.ts +13 -9
- package/src/mapper/ErrorUtils.ts +66 -41
- package/src/mapper/Mapper.ts +9 -6
- package/src/mapper/MapperFactory.ts +3 -1
- package/src/mapper/Result.ts +3 -1
- package/src/mapper/delete/DeleteExecutor.ts +4 -0
- package/src/mapper/insert/Inserter.ts +4 -4
- package/src/mapper/update/Updater.ts +3 -2
- package/src/resolvers/MutationResolver.ts +3 -1
- package/src/utils/uniqueWhereFields.ts +1 -1
- package/tests/cases/integration/graphQlRequests/delete/restrictOnDelete.test.ts +54 -1
- package/tests/cases/unit/orderbyHelper.test.ts +2 -2
- package/tests/src/test.ts +2 -1
- package/dist/tests/cases/integration/graphQlSchema/schema-acl-allowed.gql +0 -420
- package/dist/tests/cases/integration/graphQlSchema/schema-acl-create-only.gql +0 -229
- package/dist/tests/cases/integration/graphQlSchema/schema-acl-predicate.gql +0 -112
- package/dist/tests/cases/integration/graphQlSchema/schema-acl-predicate2.gql +0 -112
- package/dist/tests/cases/integration/graphQlSchema/schema-acl-restricted-create.gql +0 -309
- package/dist/tests/cases/integration/graphQlSchema/schema-acl-restricted-delete.gql +0 -402
- package/dist/tests/cases/integration/graphQlSchema/schema-acl-restricted-update.gql +0 -338
- package/dist/tests/cases/integration/graphQlSchema/schema-acl.gql +0 -221
- package/dist/tests/cases/integration/graphQlSchema/schema-aliased-type.gql +0 -226
- package/dist/tests/cases/integration/graphQlSchema/schema-basic.gql +0 -841
- package/dist/tests/cases/integration/graphQlSchema/schema-bug-66.gql +0 -540
- package/dist/tests/cases/integration/graphQlSchema/schema-custom-primary.gql +0 -851
- package/dist/tests/cases/integration/graphQlSchema/schema-has-many-reduction.gql +0 -453
- package/dist/tests/cases/integration/graphQlSchema/schema-new-builder.gql +0 -912
- package/dist/tests/cases/integration/graphQlSchema/schema-view-entity.gql +0 -112
|
@@ -1,420 +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
|
-
foo: String
|
|
40
|
-
r(filter: OneHasManyEntityWhere, orderBy: [OneHasManyEntityOrderBy!], offset: Int, limit: Int): [OneHasManyEntity!]!
|
|
41
|
-
paginateR(filter: OneHasManyEntityWhere, orderBy: [OneHasManyEntityOrderBy!], skip: Int, first: Int): OneHasManyEntityConnection!
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
type RootMeta {
|
|
45
|
-
id: FieldMeta
|
|
46
|
-
foo: FieldMeta
|
|
47
|
-
r: FieldMeta
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
input OneHasManyEntityWhere {
|
|
51
|
-
id: UUIDCondition
|
|
52
|
-
a: StringCondition
|
|
53
|
-
r2: RootWhere
|
|
54
|
-
and: [OneHasManyEntityWhere]
|
|
55
|
-
or: [OneHasManyEntityWhere]
|
|
56
|
-
not: OneHasManyEntityWhere
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
input UUIDCondition {
|
|
60
|
-
and: [UUIDCondition!]
|
|
61
|
-
or: [UUIDCondition!]
|
|
62
|
-
not: UUIDCondition
|
|
63
|
-
null: Boolean
|
|
64
|
-
isNull: Boolean
|
|
65
|
-
eq: UUID
|
|
66
|
-
notEq: UUID
|
|
67
|
-
in: [UUID!]
|
|
68
|
-
notIn: [UUID!]
|
|
69
|
-
lt: UUID
|
|
70
|
-
lte: UUID
|
|
71
|
-
gt: UUID
|
|
72
|
-
gte: UUID
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
input StringCondition {
|
|
76
|
-
and: [StringCondition!]
|
|
77
|
-
or: [StringCondition!]
|
|
78
|
-
not: StringCondition
|
|
79
|
-
null: Boolean
|
|
80
|
-
isNull: Boolean
|
|
81
|
-
eq: String
|
|
82
|
-
notEq: String
|
|
83
|
-
in: [String!]
|
|
84
|
-
notIn: [String!]
|
|
85
|
-
lt: String
|
|
86
|
-
lte: String
|
|
87
|
-
gt: String
|
|
88
|
-
gte: String
|
|
89
|
-
contains: String
|
|
90
|
-
startsWith: String
|
|
91
|
-
endsWith: String
|
|
92
|
-
containsCI: String
|
|
93
|
-
startsWithCI: String
|
|
94
|
-
endsWithCI: String
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
input RootWhere {
|
|
98
|
-
id: UUIDCondition
|
|
99
|
-
foo: StringCondition
|
|
100
|
-
r: OneHasManyEntityWhere
|
|
101
|
-
and: [RootWhere]
|
|
102
|
-
or: [RootWhere]
|
|
103
|
-
not: RootWhere
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
input OneHasManyEntityOrderBy {
|
|
107
|
-
_random: Boolean
|
|
108
|
-
_randomSeeded: Int
|
|
109
|
-
id: OrderDirection
|
|
110
|
-
a: OrderDirection
|
|
111
|
-
r2: RootOrderBy
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
enum OrderDirection {
|
|
115
|
-
asc
|
|
116
|
-
desc
|
|
117
|
-
ascNullsFirst
|
|
118
|
-
descNullsLast
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
input RootOrderBy {
|
|
122
|
-
_random: Boolean
|
|
123
|
-
_randomSeeded: Int
|
|
124
|
-
id: OrderDirection
|
|
125
|
-
foo: OrderDirection
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
type OneHasManyEntityConnection {
|
|
129
|
-
pageInfo: PageInfo!
|
|
130
|
-
edges: [OneHasManyEntityEdge!]!
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
type PageInfo {
|
|
134
|
-
totalCount: Int!
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
type OneHasManyEntityEdge {
|
|
138
|
-
node: OneHasManyEntity!
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
input OneHasManyEntityUniqueWhere {
|
|
142
|
-
id: UUID
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
type _ValidationResult {
|
|
146
|
-
valid: Boolean!
|
|
147
|
-
errors: [_ValidationError!]!
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
type _ValidationError {
|
|
151
|
-
path: [_PathFragment!]!
|
|
152
|
-
message: _ValidationMessage!
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
union _PathFragment = _FieldPathFragment | _IndexPathFragment
|
|
156
|
-
|
|
157
|
-
type _FieldPathFragment {
|
|
158
|
-
field: String!
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
type _IndexPathFragment {
|
|
162
|
-
index: Int!
|
|
163
|
-
alias: String
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
type _ValidationMessage {
|
|
167
|
-
text: String!
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
input OneHasManyEntityCreateInput {
|
|
171
|
-
a: String
|
|
172
|
-
r2: OneHasManyEntityCreateR2EntityRelationInput
|
|
173
|
-
_dummy_field_: Boolean
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
input OneHasManyEntityCreateR2EntityRelationInput {
|
|
177
|
-
connect: RootUniqueWhere
|
|
178
|
-
create: RootWithoutRCreateInput
|
|
179
|
-
connectOrCreate: OneHasManyEntityConnectOrCreateR2RelationInput
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
input RootUniqueWhere {
|
|
183
|
-
id: UUID
|
|
184
|
-
r: OneHasManyEntityUniqueWhere
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
input RootWithoutRCreateInput {
|
|
188
|
-
foo: String
|
|
189
|
-
_dummy_field_: Boolean
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
input OneHasManyEntityConnectOrCreateR2RelationInput {
|
|
193
|
-
connect: RootUniqueWhere
|
|
194
|
-
create: RootWithoutRCreateInput
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
input OneHasManyEntityUpdateInput {
|
|
198
|
-
a: String
|
|
199
|
-
r2: OneHasManyEntityUpdateR2EntityRelationInput
|
|
200
|
-
_dummy_field_: Boolean
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
input OneHasManyEntityUpdateR2EntityRelationInput {
|
|
204
|
-
connect: RootUniqueWhere
|
|
205
|
-
create: RootWithoutRCreateInput
|
|
206
|
-
connectOrCreate: OneHasManyEntityConnectOrCreateR2RelationInput
|
|
207
|
-
update: RootWithoutRUpdateInput
|
|
208
|
-
upsert: OneHasManyEntityUpsertR2RelationInput
|
|
209
|
-
disconnect: Boolean
|
|
210
|
-
delete: Boolean
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
input RootWithoutRUpdateInput {
|
|
214
|
-
foo: String
|
|
215
|
-
_dummy_field_: Boolean
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
input OneHasManyEntityUpsertR2RelationInput {
|
|
219
|
-
update: RootWithoutRUpdateInput
|
|
220
|
-
create: RootWithoutRCreateInput
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
type RootConnection {
|
|
224
|
-
pageInfo: PageInfo!
|
|
225
|
-
edges: [RootEdge!]!
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
type RootEdge {
|
|
229
|
-
node: Root!
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
input RootCreateInput {
|
|
233
|
-
foo: String
|
|
234
|
-
r: [RootCreateREntityRelationInput!]
|
|
235
|
-
_dummy_field_: Boolean
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
input RootCreateREntityRelationInput {
|
|
239
|
-
connect: OneHasManyEntityUniqueWhere
|
|
240
|
-
create: OneHasManyEntityWithoutR2CreateInput
|
|
241
|
-
connectOrCreate: RootConnectOrCreateRRelationInput
|
|
242
|
-
alias: String
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
input OneHasManyEntityWithoutR2CreateInput {
|
|
246
|
-
a: String
|
|
247
|
-
_dummy_field_: Boolean
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
input RootConnectOrCreateRRelationInput {
|
|
251
|
-
connect: OneHasManyEntityUniqueWhere
|
|
252
|
-
create: OneHasManyEntityWithoutR2CreateInput
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
input RootUpdateInput {
|
|
256
|
-
foo: String
|
|
257
|
-
r: [RootUpdateREntityRelationInput!]
|
|
258
|
-
_dummy_field_: Boolean
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
input RootUpdateREntityRelationInput {
|
|
262
|
-
create: OneHasManyEntityWithoutR2CreateInput
|
|
263
|
-
update: RootUpdateRRelationInput
|
|
264
|
-
upsert: RootUpsertRRelationInput
|
|
265
|
-
connect: OneHasManyEntityUniqueWhere
|
|
266
|
-
disconnect: OneHasManyEntityUniqueWhere
|
|
267
|
-
delete: OneHasManyEntityUniqueWhere
|
|
268
|
-
alias: String
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
input RootUpdateRRelationInput {
|
|
272
|
-
by: OneHasManyEntityUniqueWhere
|
|
273
|
-
data: OneHasManyEntityWithoutR2UpdateInput
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
input OneHasManyEntityWithoutR2UpdateInput {
|
|
277
|
-
a: String
|
|
278
|
-
_dummy_field_: Boolean
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
input RootUpsertRRelationInput {
|
|
282
|
-
by: OneHasManyEntityUniqueWhere
|
|
283
|
-
update: OneHasManyEntityWithoutR2UpdateInput
|
|
284
|
-
create: OneHasManyEntityWithoutR2CreateInput
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
type QueryTransaction {
|
|
288
|
-
getOneHasManyEntity(by: OneHasManyEntityUniqueWhere!, filter: OneHasManyEntityWhere): OneHasManyEntity
|
|
289
|
-
listOneHasManyEntity(filter: OneHasManyEntityWhere, orderBy: [OneHasManyEntityOrderBy!], offset: Int, limit: Int): [OneHasManyEntity!]!
|
|
290
|
-
paginateOneHasManyEntity(filter: OneHasManyEntityWhere, orderBy: [OneHasManyEntityOrderBy!], skip: Int, first: Int): OneHasManyEntityConnection!
|
|
291
|
-
validateCreateOneHasManyEntity(data: OneHasManyEntityCreateInput!): _ValidationResult!
|
|
292
|
-
validateUpdateOneHasManyEntity(by: OneHasManyEntityUniqueWhere!, data: OneHasManyEntityUpdateInput!): _ValidationResult!
|
|
293
|
-
getRoot(by: RootUniqueWhere!, filter: RootWhere): Root
|
|
294
|
-
listRoot(filter: RootWhere, orderBy: [RootOrderBy!], offset: Int, limit: Int): [Root!]!
|
|
295
|
-
paginateRoot(filter: RootWhere, orderBy: [RootOrderBy!], skip: Int, first: Int): RootConnection!
|
|
296
|
-
validateCreateRoot(data: RootCreateInput!): _ValidationResult!
|
|
297
|
-
validateUpdateRoot(by: RootUniqueWhere!, data: RootUpdateInput!): _ValidationResult!
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
type Info {
|
|
301
|
-
description: String
|
|
302
|
-
}
|
|
303
|
-
|
|
304
|
-
type Mutation {
|
|
305
|
-
createOneHasManyEntity(data: OneHasManyEntityCreateInput!): OneHasManyEntityCreateResult!
|
|
306
|
-
deleteOneHasManyEntity(by: OneHasManyEntityUniqueWhere!, filter: OneHasManyEntityWhere): OneHasManyEntityDeleteResult!
|
|
307
|
-
updateOneHasManyEntity(by: OneHasManyEntityUniqueWhere!, filter: OneHasManyEntityWhere, data: OneHasManyEntityUpdateInput!): OneHasManyEntityUpdateResult!
|
|
308
|
-
upsertOneHasManyEntity(by: OneHasManyEntityUniqueWhere!, filter: OneHasManyEntityWhere, update: OneHasManyEntityUpdateInput!, create: OneHasManyEntityCreateInput!): OneHasManyEntityUpsertResult!
|
|
309
|
-
createRoot(data: RootCreateInput!): RootCreateResult!
|
|
310
|
-
deleteRoot(by: RootUniqueWhere!, filter: RootWhere): RootDeleteResult!
|
|
311
|
-
updateRoot(by: RootUniqueWhere!, filter: RootWhere, data: RootUpdateInput!): RootUpdateResult!
|
|
312
|
-
upsertRoot(by: RootUniqueWhere!, filter: RootWhere, update: RootUpdateInput!, create: RootCreateInput!): RootUpsertResult!
|
|
313
|
-
transaction(options: MutationTransactionOptions): MutationTransaction!
|
|
314
|
-
query: Query!
|
|
315
|
-
}
|
|
316
|
-
|
|
317
|
-
type OneHasManyEntityCreateResult implements MutationResult {
|
|
318
|
-
ok: Boolean!
|
|
319
|
-
errorMessage: String
|
|
320
|
-
errors: [_MutationError!]!
|
|
321
|
-
node: OneHasManyEntity
|
|
322
|
-
validation: _ValidationResult!
|
|
323
|
-
}
|
|
324
|
-
|
|
325
|
-
interface MutationResult {
|
|
326
|
-
ok: Boolean!
|
|
327
|
-
errorMessage: String
|
|
328
|
-
errors: [_MutationError!]!
|
|
329
|
-
}
|
|
330
|
-
|
|
331
|
-
type _MutationError {
|
|
332
|
-
path: [_PathFragment!]! @deprecated(reason: "Use `paths`.")
|
|
333
|
-
paths: [[_PathFragment!]!]!
|
|
334
|
-
type: _MutationErrorType!
|
|
335
|
-
message: String
|
|
336
|
-
}
|
|
337
|
-
|
|
338
|
-
enum _MutationErrorType {
|
|
339
|
-
NotNullConstraintViolation
|
|
340
|
-
UniqueConstraintViolation
|
|
341
|
-
ForeignKeyConstraintViolation
|
|
342
|
-
NotFoundOrDenied
|
|
343
|
-
NonUniqueWhereInput
|
|
344
|
-
InvalidDataInput
|
|
345
|
-
SqlError
|
|
346
|
-
}
|
|
347
|
-
|
|
348
|
-
type OneHasManyEntityDeleteResult implements MutationResult {
|
|
349
|
-
ok: Boolean!
|
|
350
|
-
errorMessage: String
|
|
351
|
-
errors: [_MutationError!]!
|
|
352
|
-
node: OneHasManyEntity
|
|
353
|
-
}
|
|
354
|
-
|
|
355
|
-
type OneHasManyEntityUpdateResult implements MutationResult {
|
|
356
|
-
ok: Boolean!
|
|
357
|
-
errorMessage: String
|
|
358
|
-
errors: [_MutationError!]!
|
|
359
|
-
node: OneHasManyEntity
|
|
360
|
-
validation: _ValidationResult!
|
|
361
|
-
}
|
|
362
|
-
|
|
363
|
-
type OneHasManyEntityUpsertResult implements MutationResult {
|
|
364
|
-
ok: Boolean!
|
|
365
|
-
errorMessage: String
|
|
366
|
-
errors: [_MutationError!]!
|
|
367
|
-
node: OneHasManyEntity
|
|
368
|
-
validation: _ValidationResult!
|
|
369
|
-
}
|
|
370
|
-
|
|
371
|
-
type RootCreateResult implements MutationResult {
|
|
372
|
-
ok: Boolean!
|
|
373
|
-
errorMessage: String
|
|
374
|
-
errors: [_MutationError!]!
|
|
375
|
-
node: Root
|
|
376
|
-
validation: _ValidationResult!
|
|
377
|
-
}
|
|
378
|
-
|
|
379
|
-
type RootDeleteResult implements MutationResult {
|
|
380
|
-
ok: Boolean!
|
|
381
|
-
errorMessage: String
|
|
382
|
-
errors: [_MutationError!]!
|
|
383
|
-
node: Root
|
|
384
|
-
}
|
|
385
|
-
|
|
386
|
-
type RootUpdateResult implements MutationResult {
|
|
387
|
-
ok: Boolean!
|
|
388
|
-
errorMessage: String
|
|
389
|
-
errors: [_MutationError!]!
|
|
390
|
-
node: Root
|
|
391
|
-
validation: _ValidationResult!
|
|
392
|
-
}
|
|
393
|
-
|
|
394
|
-
type RootUpsertResult implements MutationResult {
|
|
395
|
-
ok: Boolean!
|
|
396
|
-
errorMessage: String
|
|
397
|
-
errors: [_MutationError!]!
|
|
398
|
-
node: Root
|
|
399
|
-
validation: _ValidationResult!
|
|
400
|
-
}
|
|
401
|
-
|
|
402
|
-
type MutationTransaction {
|
|
403
|
-
ok: Boolean!
|
|
404
|
-
errorMessage: String
|
|
405
|
-
errors: [_MutationError!]!
|
|
406
|
-
validation: _ValidationResult!
|
|
407
|
-
createOneHasManyEntity(data: OneHasManyEntityCreateInput!): OneHasManyEntityCreateResult!
|
|
408
|
-
deleteOneHasManyEntity(by: OneHasManyEntityUniqueWhere!, filter: OneHasManyEntityWhere): OneHasManyEntityDeleteResult!
|
|
409
|
-
updateOneHasManyEntity(by: OneHasManyEntityUniqueWhere!, filter: OneHasManyEntityWhere, data: OneHasManyEntityUpdateInput!): OneHasManyEntityUpdateResult!
|
|
410
|
-
upsertOneHasManyEntity(by: OneHasManyEntityUniqueWhere!, filter: OneHasManyEntityWhere, update: OneHasManyEntityUpdateInput!, create: OneHasManyEntityCreateInput!): OneHasManyEntityUpsertResult!
|
|
411
|
-
createRoot(data: RootCreateInput!): RootCreateResult!
|
|
412
|
-
deleteRoot(by: RootUniqueWhere!, filter: RootWhere): RootDeleteResult!
|
|
413
|
-
updateRoot(by: RootUniqueWhere!, filter: RootWhere, data: RootUpdateInput!): RootUpdateResult!
|
|
414
|
-
upsertRoot(by: RootUniqueWhere!, filter: RootWhere, update: RootUpdateInput!, create: RootCreateInput!): RootUpsertResult!
|
|
415
|
-
query: Query
|
|
416
|
-
}
|
|
417
|
-
|
|
418
|
-
input MutationTransactionOptions {
|
|
419
|
-
deferForeignKeyConstraints: Boolean
|
|
420
|
-
}
|
|
@@ -1,229 +0,0 @@
|
|
|
1
|
-
type Query {
|
|
2
|
-
validateCreateAuthor(data: AuthorCreateInput!): _ValidationResult!
|
|
3
|
-
validateCreatePost(data: PostCreateInput!): _ValidationResult!
|
|
4
|
-
validateCreatePostLocale(data: PostLocaleCreateInput!): _ValidationResult!
|
|
5
|
-
validateCreateCategory(data: CategoryCreateInput!): _ValidationResult!
|
|
6
|
-
transaction: QueryTransaction
|
|
7
|
-
_info: Info
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
type _ValidationResult {
|
|
11
|
-
valid: Boolean!
|
|
12
|
-
errors: [_ValidationError!]!
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
type _ValidationError {
|
|
16
|
-
path: [_PathFragment!]!
|
|
17
|
-
message: _ValidationMessage!
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
union _PathFragment = _FieldPathFragment | _IndexPathFragment
|
|
21
|
-
|
|
22
|
-
type _FieldPathFragment {
|
|
23
|
-
field: String!
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
type _IndexPathFragment {
|
|
27
|
-
index: Int!
|
|
28
|
-
alias: String
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
type _ValidationMessage {
|
|
32
|
-
text: String!
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
input AuthorCreateInput {
|
|
36
|
-
name: String
|
|
37
|
-
posts: [AuthorCreatePostsEntityRelationInput!]
|
|
38
|
-
_dummy_field_: Boolean
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
input AuthorCreatePostsEntityRelationInput {
|
|
42
|
-
create: PostWithoutAuthorCreateInput
|
|
43
|
-
alias: String
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
input PostWithoutAuthorCreateInput {
|
|
47
|
-
state: PostState
|
|
48
|
-
publishedAt: DateTime
|
|
49
|
-
categories: [PostCreateCategoriesEntityRelationInput!]
|
|
50
|
-
locales: [PostCreateLocalesEntityRelationInput!]
|
|
51
|
-
_dummy_field_: Boolean
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
enum PostState {
|
|
55
|
-
draft
|
|
56
|
-
forReview
|
|
57
|
-
published
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
scalar DateTime
|
|
61
|
-
|
|
62
|
-
input PostCreateCategoriesEntityRelationInput {
|
|
63
|
-
create: CategoryWithoutPostsCreateInput
|
|
64
|
-
alias: String
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
input CategoryWithoutPostsCreateInput {
|
|
68
|
-
name: String
|
|
69
|
-
_dummy_field_: Boolean
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
input PostCreateLocalesEntityRelationInput {
|
|
73
|
-
create: PostLocaleWithoutPostCreateInput
|
|
74
|
-
alias: String
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
input PostLocaleWithoutPostCreateInput {
|
|
78
|
-
locale: Locale
|
|
79
|
-
title: String
|
|
80
|
-
_dummy_field_: Boolean
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
enum Locale {
|
|
84
|
-
cs
|
|
85
|
-
en
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
input PostCreateInput {
|
|
89
|
-
state: PostState
|
|
90
|
-
publishedAt: DateTime
|
|
91
|
-
categories: [PostCreateCategoriesEntityRelationInput!]
|
|
92
|
-
author: PostCreateAuthorEntityRelationInput
|
|
93
|
-
locales: [PostCreateLocalesEntityRelationInput!]
|
|
94
|
-
_dummy_field_: Boolean
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
input PostCreateAuthorEntityRelationInput {
|
|
98
|
-
create: AuthorWithoutPostsCreateInput
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
input AuthorWithoutPostsCreateInput {
|
|
102
|
-
name: String
|
|
103
|
-
_dummy_field_: Boolean
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
input PostLocaleCreateInput {
|
|
107
|
-
locale: Locale
|
|
108
|
-
title: String
|
|
109
|
-
post: PostLocaleCreatePostEntityRelationInput
|
|
110
|
-
_dummy_field_: Boolean
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
input PostLocaleCreatePostEntityRelationInput {
|
|
114
|
-
create: PostWithoutLocalesCreateInput
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
input PostWithoutLocalesCreateInput {
|
|
118
|
-
state: PostState
|
|
119
|
-
publishedAt: DateTime
|
|
120
|
-
categories: [PostCreateCategoriesEntityRelationInput!]
|
|
121
|
-
author: PostCreateAuthorEntityRelationInput
|
|
122
|
-
_dummy_field_: Boolean
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
input CategoryCreateInput {
|
|
126
|
-
name: String
|
|
127
|
-
posts: [CategoryCreatePostsEntityRelationInput!]
|
|
128
|
-
_dummy_field_: Boolean
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
input CategoryCreatePostsEntityRelationInput {
|
|
132
|
-
create: PostWithoutCategoriesCreateInput
|
|
133
|
-
alias: String
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
input PostWithoutCategoriesCreateInput {
|
|
137
|
-
state: PostState
|
|
138
|
-
publishedAt: DateTime
|
|
139
|
-
author: PostCreateAuthorEntityRelationInput
|
|
140
|
-
locales: [PostCreateLocalesEntityRelationInput!]
|
|
141
|
-
_dummy_field_: Boolean
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
type QueryTransaction {
|
|
145
|
-
validateCreateAuthor(data: AuthorCreateInput!): _ValidationResult!
|
|
146
|
-
validateCreatePost(data: PostCreateInput!): _ValidationResult!
|
|
147
|
-
validateCreatePostLocale(data: PostLocaleCreateInput!): _ValidationResult!
|
|
148
|
-
validateCreateCategory(data: CategoryCreateInput!): _ValidationResult!
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
type Info {
|
|
152
|
-
description: String
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
type Mutation {
|
|
156
|
-
createAuthor(data: AuthorCreateInput!): AuthorCreateResult!
|
|
157
|
-
createPost(data: PostCreateInput!): PostCreateResult!
|
|
158
|
-
createPostLocale(data: PostLocaleCreateInput!): PostLocaleCreateResult!
|
|
159
|
-
createCategory(data: CategoryCreateInput!): CategoryCreateResult!
|
|
160
|
-
transaction(options: MutationTransactionOptions): MutationTransaction!
|
|
161
|
-
query: Query!
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
type AuthorCreateResult implements MutationResult {
|
|
165
|
-
ok: Boolean!
|
|
166
|
-
errorMessage: String
|
|
167
|
-
errors: [_MutationError!]!
|
|
168
|
-
validation: _ValidationResult!
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
interface MutationResult {
|
|
172
|
-
ok: Boolean!
|
|
173
|
-
errorMessage: String
|
|
174
|
-
errors: [_MutationError!]!
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
type _MutationError {
|
|
178
|
-
path: [_PathFragment!]! @deprecated(reason: "Use `paths`.")
|
|
179
|
-
paths: [[_PathFragment!]!]!
|
|
180
|
-
type: _MutationErrorType!
|
|
181
|
-
message: String
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
enum _MutationErrorType {
|
|
185
|
-
NotNullConstraintViolation
|
|
186
|
-
UniqueConstraintViolation
|
|
187
|
-
ForeignKeyConstraintViolation
|
|
188
|
-
NotFoundOrDenied
|
|
189
|
-
NonUniqueWhereInput
|
|
190
|
-
InvalidDataInput
|
|
191
|
-
SqlError
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
type PostCreateResult implements MutationResult {
|
|
195
|
-
ok: Boolean!
|
|
196
|
-
errorMessage: String
|
|
197
|
-
errors: [_MutationError!]!
|
|
198
|
-
validation: _ValidationResult!
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
type PostLocaleCreateResult implements MutationResult {
|
|
202
|
-
ok: Boolean!
|
|
203
|
-
errorMessage: String
|
|
204
|
-
errors: [_MutationError!]!
|
|
205
|
-
validation: _ValidationResult!
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
type CategoryCreateResult implements MutationResult {
|
|
209
|
-
ok: Boolean!
|
|
210
|
-
errorMessage: String
|
|
211
|
-
errors: [_MutationError!]!
|
|
212
|
-
validation: _ValidationResult!
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
type MutationTransaction {
|
|
216
|
-
ok: Boolean!
|
|
217
|
-
errorMessage: String
|
|
218
|
-
errors: [_MutationError!]!
|
|
219
|
-
validation: _ValidationResult!
|
|
220
|
-
createAuthor(data: AuthorCreateInput!): AuthorCreateResult!
|
|
221
|
-
createPost(data: PostCreateInput!): PostCreateResult!
|
|
222
|
-
createPostLocale(data: PostLocaleCreateInput!): PostLocaleCreateResult!
|
|
223
|
-
createCategory(data: CategoryCreateInput!): CategoryCreateResult!
|
|
224
|
-
query: Query
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
input MutationTransactionOptions {
|
|
228
|
-
deferForeignKeyConstraints: Boolean
|
|
229
|
-
}
|