@contember/engine-content-api 2.0.0 → 2.1.0-alpha.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/development/src/ExecutionContainer.cjs +1 -1
- package/dist/development/src/ExecutionContainer.cjs.map +1 -1
- package/dist/development/src/ExecutionContainer.js +1 -1
- package/dist/development/src/ExecutionContainer.js.map +1 -1
- package/dist/development/src/input-validation/ColumnValueResolver.cjs +1 -1
- package/dist/development/src/input-validation/ColumnValueResolver.cjs.map +1 -1
- package/dist/development/src/input-validation/ColumnValueResolver.js +1 -1
- package/dist/development/src/input-validation/ColumnValueResolver.js.map +1 -1
- package/dist/development/src/mapper/insert/Inserter.cjs +3 -2
- package/dist/development/src/mapper/insert/Inserter.cjs.map +1 -1
- package/dist/development/src/mapper/insert/Inserter.js +3 -2
- package/dist/development/src/mapper/insert/Inserter.js.map +1 -1
- package/dist/development/src/mapper/insert/SqlCreateInputProcessor.cjs +3 -2
- package/dist/development/src/mapper/insert/SqlCreateInputProcessor.cjs.map +1 -1
- package/dist/development/src/mapper/insert/SqlCreateInputProcessor.js +3 -2
- package/dist/development/src/mapper/insert/SqlCreateInputProcessor.js.map +1 -1
- package/dist/development/src/mapper/select/ConditionBuilder.cjs +9 -2
- package/dist/development/src/mapper/select/ConditionBuilder.cjs.map +1 -1
- package/dist/development/src/mapper/select/ConditionBuilder.js +10 -3
- package/dist/development/src/mapper/select/ConditionBuilder.js.map +1 -1
- package/dist/development/src/mapper/select/WhereBuilder.cjs +3 -3
- package/dist/development/src/mapper/select/WhereBuilder.cjs.map +1 -1
- package/dist/development/src/mapper/select/WhereBuilder.js +3 -3
- package/dist/development/src/mapper/select/WhereBuilder.js.map +1 -1
- package/dist/development/src/mapper/select/handlers/FieldsVisitor.cjs +3 -0
- package/dist/development/src/mapper/select/handlers/FieldsVisitor.cjs.map +1 -1
- package/dist/development/src/mapper/select/handlers/FieldsVisitor.js +3 -0
- package/dist/development/src/mapper/select/handlers/FieldsVisitor.js.map +1 -1
- package/dist/development/src/schema/ColumnTypeResolver.cjs +9 -0
- package/dist/development/src/schema/ColumnTypeResolver.cjs.map +1 -1
- package/dist/development/src/schema/ColumnTypeResolver.js +10 -1
- package/dist/development/src/schema/ColumnTypeResolver.js.map +1 -1
- package/dist/development/src/schema/ConditionTypeProvider.cjs +35 -23
- package/dist/development/src/schema/ConditionTypeProvider.cjs.map +1 -1
- package/dist/development/src/schema/ConditionTypeProvider.js +36 -24
- package/dist/development/src/schema/ConditionTypeProvider.js.map +1 -1
- package/dist/development/src/schema/CustomTypesProvider.cjs +30 -0
- package/dist/development/src/schema/CustomTypesProvider.cjs.map +1 -1
- package/dist/development/src/schema/CustomTypesProvider.js +30 -0
- package/dist/development/src/schema/CustomTypesProvider.js.map +1 -1
- package/dist/development/src/schema/OrderByTypeProvider.cjs +6 -1
- package/dist/development/src/schema/OrderByTypeProvider.cjs.map +1 -1
- package/dist/development/src/schema/OrderByTypeProvider.js +6 -1
- package/dist/development/src/schema/OrderByTypeProvider.js.map +1 -1
- package/dist/development/src/schema/WhereTypeProvider.cjs +1 -1
- package/dist/development/src/schema/WhereTypeProvider.cjs.map +1 -1
- package/dist/development/src/schema/WhereTypeProvider.js +1 -1
- package/dist/development/src/schema/WhereTypeProvider.js.map +1 -1
- package/dist/development/src/schema/entities/FieldTypeVisitor.cjs +3 -3
- package/dist/development/src/schema/entities/FieldTypeVisitor.cjs.map +1 -1
- package/dist/development/src/schema/entities/FieldTypeVisitor.js +3 -3
- package/dist/development/src/schema/entities/FieldTypeVisitor.js.map +1 -1
- package/dist/development/src/schema/mutations/CreateEntityInputFieldVisitor.cjs +1 -1
- package/dist/development/src/schema/mutations/CreateEntityInputFieldVisitor.cjs.map +1 -1
- package/dist/development/src/schema/mutations/CreateEntityInputFieldVisitor.js +1 -1
- package/dist/development/src/schema/mutations/CreateEntityInputFieldVisitor.js.map +1 -1
- package/dist/development/src/schema/mutations/UpdateEntityInputFieldVisitor.cjs +1 -1
- package/dist/development/src/schema/mutations/UpdateEntityInputFieldVisitor.cjs.map +1 -1
- package/dist/development/src/schema/mutations/UpdateEntityInputFieldVisitor.js +1 -1
- package/dist/development/src/schema/mutations/UpdateEntityInputFieldVisitor.js.map +1 -1
- package/dist/production/src/ExecutionContainer.cjs +1 -1
- package/dist/production/src/ExecutionContainer.cjs.map +1 -1
- package/dist/production/src/ExecutionContainer.js +1 -1
- package/dist/production/src/ExecutionContainer.js.map +1 -1
- package/dist/production/src/input-validation/ColumnValueResolver.cjs +1 -1
- package/dist/production/src/input-validation/ColumnValueResolver.cjs.map +1 -1
- package/dist/production/src/input-validation/ColumnValueResolver.js +1 -1
- package/dist/production/src/input-validation/ColumnValueResolver.js.map +1 -1
- package/dist/production/src/mapper/insert/Inserter.cjs +3 -2
- package/dist/production/src/mapper/insert/Inserter.cjs.map +1 -1
- package/dist/production/src/mapper/insert/Inserter.js +3 -2
- package/dist/production/src/mapper/insert/Inserter.js.map +1 -1
- package/dist/production/src/mapper/insert/SqlCreateInputProcessor.cjs +3 -2
- package/dist/production/src/mapper/insert/SqlCreateInputProcessor.cjs.map +1 -1
- package/dist/production/src/mapper/insert/SqlCreateInputProcessor.js +3 -2
- package/dist/production/src/mapper/insert/SqlCreateInputProcessor.js.map +1 -1
- package/dist/production/src/mapper/select/ConditionBuilder.cjs +9 -2
- package/dist/production/src/mapper/select/ConditionBuilder.cjs.map +1 -1
- package/dist/production/src/mapper/select/ConditionBuilder.js +10 -3
- package/dist/production/src/mapper/select/ConditionBuilder.js.map +1 -1
- package/dist/production/src/mapper/select/WhereBuilder.cjs +3 -3
- package/dist/production/src/mapper/select/WhereBuilder.cjs.map +1 -1
- package/dist/production/src/mapper/select/WhereBuilder.js +3 -3
- package/dist/production/src/mapper/select/WhereBuilder.js.map +1 -1
- package/dist/production/src/mapper/select/handlers/FieldsVisitor.cjs +3 -0
- package/dist/production/src/mapper/select/handlers/FieldsVisitor.cjs.map +1 -1
- package/dist/production/src/mapper/select/handlers/FieldsVisitor.js +3 -0
- package/dist/production/src/mapper/select/handlers/FieldsVisitor.js.map +1 -1
- package/dist/production/src/schema/ColumnTypeResolver.cjs +9 -0
- package/dist/production/src/schema/ColumnTypeResolver.cjs.map +1 -1
- package/dist/production/src/schema/ColumnTypeResolver.js +10 -1
- package/dist/production/src/schema/ColumnTypeResolver.js.map +1 -1
- package/dist/production/src/schema/ConditionTypeProvider.cjs +35 -23
- package/dist/production/src/schema/ConditionTypeProvider.cjs.map +1 -1
- package/dist/production/src/schema/ConditionTypeProvider.js +36 -24
- package/dist/production/src/schema/ConditionTypeProvider.js.map +1 -1
- package/dist/production/src/schema/CustomTypesProvider.cjs +30 -0
- package/dist/production/src/schema/CustomTypesProvider.cjs.map +1 -1
- package/dist/production/src/schema/CustomTypesProvider.js +30 -0
- package/dist/production/src/schema/CustomTypesProvider.js.map +1 -1
- package/dist/production/src/schema/OrderByTypeProvider.cjs +6 -1
- package/dist/production/src/schema/OrderByTypeProvider.cjs.map +1 -1
- package/dist/production/src/schema/OrderByTypeProvider.js +6 -1
- package/dist/production/src/schema/OrderByTypeProvider.js.map +1 -1
- package/dist/production/src/schema/WhereTypeProvider.cjs +1 -1
- package/dist/production/src/schema/WhereTypeProvider.cjs.map +1 -1
- package/dist/production/src/schema/WhereTypeProvider.js +1 -1
- package/dist/production/src/schema/WhereTypeProvider.js.map +1 -1
- package/dist/production/src/schema/entities/FieldTypeVisitor.cjs +3 -3
- package/dist/production/src/schema/entities/FieldTypeVisitor.cjs.map +1 -1
- package/dist/production/src/schema/entities/FieldTypeVisitor.js +3 -3
- package/dist/production/src/schema/entities/FieldTypeVisitor.js.map +1 -1
- package/dist/production/src/schema/mutations/CreateEntityInputFieldVisitor.cjs +1 -1
- package/dist/production/src/schema/mutations/CreateEntityInputFieldVisitor.cjs.map +1 -1
- package/dist/production/src/schema/mutations/CreateEntityInputFieldVisitor.js +1 -1
- package/dist/production/src/schema/mutations/CreateEntityInputFieldVisitor.js.map +1 -1
- package/dist/production/src/schema/mutations/UpdateEntityInputFieldVisitor.cjs +1 -1
- package/dist/production/src/schema/mutations/UpdateEntityInputFieldVisitor.cjs.map +1 -1
- package/dist/production/src/schema/mutations/UpdateEntityInputFieldVisitor.js +1 -1
- package/dist/production/src/schema/mutations/UpdateEntityInputFieldVisitor.js.map +1 -1
- package/dist/tests/tsconfig.tsbuildinfo +1 -1
- package/dist/types/mapper/insert/Inserter.d.ts +4 -1
- package/dist/types/mapper/insert/Inserter.d.ts.map +1 -1
- package/dist/types/mapper/insert/SqlCreateInputProcessor.d.ts +4 -1
- package/dist/types/mapper/insert/SqlCreateInputProcessor.d.ts.map +1 -1
- package/dist/types/mapper/select/ConditionBuilder.d.ts +2 -2
- package/dist/types/mapper/select/ConditionBuilder.d.ts.map +1 -1
- package/dist/types/mapper/select/handlers/FieldsVisitor.d.ts.map +1 -1
- package/dist/types/schema/ColumnTypeResolver.d.ts +5 -5
- package/dist/types/schema/ColumnTypeResolver.d.ts.map +1 -1
- package/dist/types/schema/ConditionTypeProvider.d.ts +1 -0
- package/dist/types/schema/ConditionTypeProvider.d.ts.map +1 -1
- package/dist/types/schema/CustomTypesProvider.d.ts +1 -0
- package/dist/types/schema/CustomTypesProvider.d.ts.map +1 -1
- package/dist/types/schema/OrderByTypeProvider.d.ts.map +1 -1
- package/dist/types/schema/mutations/UpdateEntityInputFieldVisitor.d.ts +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +10 -10
- package/src/ExecutionContainer.ts +1 -1
- package/src/input-validation/ColumnValueResolver.ts +1 -1
- package/src/mapper/insert/Inserter.ts +2 -1
- package/src/mapper/insert/SqlCreateInputProcessor.ts +2 -1
- package/src/mapper/select/ConditionBuilder.ts +19 -5
- package/src/mapper/select/WhereBuilder.ts +3 -3
- package/src/mapper/select/handlers/FieldsVisitor.ts +3 -0
- package/src/schema/ColumnTypeResolver.ts +15 -3
- package/src/schema/ConditionTypeProvider.ts +40 -25
- package/src/schema/CustomTypesProvider.ts +37 -0
- package/src/schema/OrderByTypeProvider.ts +6 -1
- package/src/schema/WhereTypeProvider.ts +1 -1
- package/src/schema/entities/FieldTypeVisitor.ts +3 -3
- package/src/schema/mutations/CreateEntityInputFieldVisitor.ts +1 -1
- package/src/schema/mutations/UpdateEntityInputFieldVisitor.ts +1 -1
- package/tests/cases/integration/graphQlSchema/graphQlSchemaBuilder.test.ts +37 -1
- package/tests/cases/integration/graphQlSchema/schema-aliased-type.gql +6 -0
- package/tests/cases/integration/graphQlSchema/schema-array.gql +257 -0
- package/tests/cases/integration/graphQlSchema/schema-column-types.gql +420 -0
|
@@ -0,0 +1,257 @@
|
|
|
1
|
+
type Query {
|
|
2
|
+
getFoo(by: FooUniqueWhere!, filter: FooWhere): Foo
|
|
3
|
+
listFoo(filter: FooWhere, orderBy: [FooOrderBy!], offset: Int, limit: Int): [Foo!]!
|
|
4
|
+
paginateFoo(filter: FooWhere, orderBy: [FooOrderBy!], skip: Int, first: Int): FooConnection!
|
|
5
|
+
validateCreateFoo(data: FooCreateInput!): _ValidationResult!
|
|
6
|
+
validateUpdateFoo(by: FooUniqueWhere!, data: FooUpdateInput!): _ValidationResult!
|
|
7
|
+
transaction: QueryTransaction
|
|
8
|
+
_info: Info
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
type Foo {
|
|
12
|
+
_meta: FooMeta
|
|
13
|
+
id: UUID!
|
|
14
|
+
stringArrayValue: [String!]
|
|
15
|
+
enumArrayValue: [FooEnumArrayValue!]
|
|
16
|
+
intArrayValue: [Int!]
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
type FooMeta {
|
|
20
|
+
id: FieldMeta
|
|
21
|
+
stringArrayValue: FieldMeta
|
|
22
|
+
enumArrayValue: FieldMeta
|
|
23
|
+
intArrayValue: FieldMeta
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
type FieldMeta {
|
|
27
|
+
readable: Boolean
|
|
28
|
+
updatable: Boolean
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
scalar UUID
|
|
32
|
+
|
|
33
|
+
enum FooEnumArrayValue {
|
|
34
|
+
a
|
|
35
|
+
b
|
|
36
|
+
c
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
input FooUniqueWhere {
|
|
40
|
+
id: UUID
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
input FooWhere {
|
|
44
|
+
id: UUIDCondition
|
|
45
|
+
stringArrayValue: StringListCondition
|
|
46
|
+
enumArrayValue: FooEnumArrayValueEnumListCondition
|
|
47
|
+
intArrayValue: IntListCondition
|
|
48
|
+
and: [FooWhere]
|
|
49
|
+
or: [FooWhere]
|
|
50
|
+
not: FooWhere
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
input UUIDCondition {
|
|
54
|
+
and: [UUIDCondition!]
|
|
55
|
+
or: [UUIDCondition!]
|
|
56
|
+
not: UUIDCondition
|
|
57
|
+
null: Boolean
|
|
58
|
+
isNull: Boolean
|
|
59
|
+
eq: UUID
|
|
60
|
+
notEq: UUID
|
|
61
|
+
in: [UUID!]
|
|
62
|
+
notIn: [UUID!]
|
|
63
|
+
lt: UUID
|
|
64
|
+
lte: UUID
|
|
65
|
+
gt: UUID
|
|
66
|
+
gte: UUID
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
input StringListCondition {
|
|
70
|
+
and: [StringListCondition!]
|
|
71
|
+
or: [StringListCondition!]
|
|
72
|
+
not: StringListCondition
|
|
73
|
+
null: Boolean
|
|
74
|
+
isNull: Boolean
|
|
75
|
+
minLength: Int
|
|
76
|
+
maxLength: Int
|
|
77
|
+
includes: String
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
input FooEnumArrayValueEnumListCondition {
|
|
81
|
+
and: [FooEnumArrayValueEnumListCondition!]
|
|
82
|
+
or: [FooEnumArrayValueEnumListCondition!]
|
|
83
|
+
not: FooEnumArrayValueEnumListCondition
|
|
84
|
+
null: Boolean
|
|
85
|
+
isNull: Boolean
|
|
86
|
+
minLength: Int
|
|
87
|
+
maxLength: Int
|
|
88
|
+
includes: FooEnumArrayValue
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
input IntListCondition {
|
|
92
|
+
and: [IntListCondition!]
|
|
93
|
+
or: [IntListCondition!]
|
|
94
|
+
not: IntListCondition
|
|
95
|
+
null: Boolean
|
|
96
|
+
isNull: Boolean
|
|
97
|
+
minLength: Int
|
|
98
|
+
maxLength: Int
|
|
99
|
+
includes: Int
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
input FooOrderBy {
|
|
103
|
+
_random: Boolean
|
|
104
|
+
_randomSeeded: Int
|
|
105
|
+
id: OrderDirection
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
enum OrderDirection {
|
|
109
|
+
asc
|
|
110
|
+
desc
|
|
111
|
+
ascNullsFirst
|
|
112
|
+
descNullsLast
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
type FooConnection {
|
|
116
|
+
pageInfo: PageInfo!
|
|
117
|
+
edges: [FooEdge!]!
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
type PageInfo {
|
|
121
|
+
totalCount: Int!
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
type FooEdge {
|
|
125
|
+
node: Foo!
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
type _ValidationResult {
|
|
129
|
+
valid: Boolean!
|
|
130
|
+
errors: [_ValidationError!]!
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
type _ValidationError {
|
|
134
|
+
path: [_PathFragment!]!
|
|
135
|
+
message: _ValidationMessage!
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
union _PathFragment = _FieldPathFragment | _IndexPathFragment
|
|
139
|
+
|
|
140
|
+
type _FieldPathFragment {
|
|
141
|
+
field: String!
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
type _IndexPathFragment {
|
|
145
|
+
index: Int!
|
|
146
|
+
alias: String
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
type _ValidationMessage {
|
|
150
|
+
text: String!
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
input FooCreateInput {
|
|
154
|
+
stringArrayValue: [String!]
|
|
155
|
+
enumArrayValue: [FooEnumArrayValue!]
|
|
156
|
+
intArrayValue: [Int!]
|
|
157
|
+
_dummy_field_: Boolean
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
input FooUpdateInput {
|
|
161
|
+
stringArrayValue: [String!]
|
|
162
|
+
enumArrayValue: [FooEnumArrayValue!]
|
|
163
|
+
intArrayValue: [Int!]
|
|
164
|
+
_dummy_field_: Boolean
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
type QueryTransaction {
|
|
168
|
+
getFoo(by: FooUniqueWhere!, filter: FooWhere): Foo
|
|
169
|
+
listFoo(filter: FooWhere, orderBy: [FooOrderBy!], offset: Int, limit: Int): [Foo!]!
|
|
170
|
+
paginateFoo(filter: FooWhere, orderBy: [FooOrderBy!], skip: Int, first: Int): FooConnection!
|
|
171
|
+
validateCreateFoo(data: FooCreateInput!): _ValidationResult!
|
|
172
|
+
validateUpdateFoo(by: FooUniqueWhere!, data: FooUpdateInput!): _ValidationResult!
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
type Info {
|
|
176
|
+
description: String
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
type Mutation {
|
|
180
|
+
createFoo(data: FooCreateInput!): FooCreateResult!
|
|
181
|
+
deleteFoo(by: FooUniqueWhere!, filter: FooWhere): FooDeleteResult!
|
|
182
|
+
updateFoo(by: FooUniqueWhere!, filter: FooWhere, data: FooUpdateInput!): FooUpdateResult!
|
|
183
|
+
upsertFoo(by: FooUniqueWhere!, filter: FooWhere, update: FooUpdateInput!, create: FooCreateInput!): FooUpsertResult!
|
|
184
|
+
transaction(options: MutationTransactionOptions): MutationTransaction!
|
|
185
|
+
query: Query!
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
type FooCreateResult implements MutationResult {
|
|
189
|
+
ok: Boolean!
|
|
190
|
+
errorMessage: String
|
|
191
|
+
errors: [_MutationError!]!
|
|
192
|
+
node: Foo
|
|
193
|
+
validation: _ValidationResult!
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
interface MutationResult {
|
|
197
|
+
ok: Boolean!
|
|
198
|
+
errorMessage: String
|
|
199
|
+
errors: [_MutationError!]!
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
type _MutationError {
|
|
203
|
+
path: [_PathFragment!]! @deprecated(reason: "Use `paths`.")
|
|
204
|
+
paths: [[_PathFragment!]!]!
|
|
205
|
+
type: _MutationErrorType!
|
|
206
|
+
message: String
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
enum _MutationErrorType {
|
|
210
|
+
NotNullConstraintViolation
|
|
211
|
+
UniqueConstraintViolation
|
|
212
|
+
ForeignKeyConstraintViolation
|
|
213
|
+
NotFoundOrDenied
|
|
214
|
+
NonUniqueWhereInput
|
|
215
|
+
InvalidDataInput
|
|
216
|
+
SqlError
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
type FooDeleteResult implements MutationResult {
|
|
220
|
+
ok: Boolean!
|
|
221
|
+
errorMessage: String
|
|
222
|
+
errors: [_MutationError!]!
|
|
223
|
+
node: Foo
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
type FooUpdateResult implements MutationResult {
|
|
227
|
+
ok: Boolean!
|
|
228
|
+
errorMessage: String
|
|
229
|
+
errors: [_MutationError!]!
|
|
230
|
+
node: Foo
|
|
231
|
+
validation: _ValidationResult!
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
type FooUpsertResult implements MutationResult {
|
|
235
|
+
ok: Boolean!
|
|
236
|
+
errorMessage: String
|
|
237
|
+
errors: [_MutationError!]!
|
|
238
|
+
node: Foo
|
|
239
|
+
validation: _ValidationResult!
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
type MutationTransaction {
|
|
243
|
+
ok: Boolean!
|
|
244
|
+
errorMessage: String
|
|
245
|
+
errors: [_MutationError!]!
|
|
246
|
+
validation: _ValidationResult!
|
|
247
|
+
createFoo(data: FooCreateInput!): FooCreateResult!
|
|
248
|
+
deleteFoo(by: FooUniqueWhere!, filter: FooWhere): FooDeleteResult!
|
|
249
|
+
updateFoo(by: FooUniqueWhere!, filter: FooWhere, data: FooUpdateInput!): FooUpdateResult!
|
|
250
|
+
upsertFoo(by: FooUniqueWhere!, filter: FooWhere, update: FooUpdateInput!, create: FooCreateInput!): FooUpsertResult!
|
|
251
|
+
query: Query
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
input MutationTransactionOptions {
|
|
255
|
+
deferForeignKeyConstraints: Boolean
|
|
256
|
+
deferUniqueConstraints: Boolean
|
|
257
|
+
}
|
|
@@ -0,0 +1,420 @@
|
|
|
1
|
+
type Query {
|
|
2
|
+
getColumns(by: ColumnsUniqueWhere!, filter: ColumnsWhere): Columns
|
|
3
|
+
listColumns(filter: ColumnsWhere, orderBy: [ColumnsOrderBy!], offset: Int, limit: Int): [Columns!]!
|
|
4
|
+
paginateColumns(filter: ColumnsWhere, orderBy: [ColumnsOrderBy!], skip: Int, first: Int): ColumnsConnection!
|
|
5
|
+
validateCreateColumns(data: ColumnsCreateInput!): _ValidationResult!
|
|
6
|
+
validateUpdateColumns(by: ColumnsUniqueWhere!, data: ColumnsUpdateInput!): _ValidationResult!
|
|
7
|
+
transaction: QueryTransaction
|
|
8
|
+
_info: Info
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
type Columns {
|
|
12
|
+
_meta: ColumnsMeta
|
|
13
|
+
id: UUID!
|
|
14
|
+
string: String
|
|
15
|
+
int: Int
|
|
16
|
+
float: Float
|
|
17
|
+
boolean: Boolean
|
|
18
|
+
date: Date
|
|
19
|
+
dateTime: DateTime
|
|
20
|
+
json: Json
|
|
21
|
+
uuid: UUID
|
|
22
|
+
time: Time
|
|
23
|
+
enum: ColumnsEnum
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
type ColumnsMeta {
|
|
27
|
+
id: FieldMeta
|
|
28
|
+
string: FieldMeta
|
|
29
|
+
int: FieldMeta
|
|
30
|
+
float: FieldMeta
|
|
31
|
+
boolean: FieldMeta
|
|
32
|
+
date: FieldMeta
|
|
33
|
+
dateTime: FieldMeta
|
|
34
|
+
json: FieldMeta
|
|
35
|
+
uuid: FieldMeta
|
|
36
|
+
time: FieldMeta
|
|
37
|
+
enum: FieldMeta
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
type FieldMeta {
|
|
41
|
+
readable: Boolean
|
|
42
|
+
updatable: Boolean
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
scalar UUID
|
|
46
|
+
|
|
47
|
+
scalar Date
|
|
48
|
+
|
|
49
|
+
scalar DateTime
|
|
50
|
+
|
|
51
|
+
"""JSON custom scalar type"""
|
|
52
|
+
scalar Json
|
|
53
|
+
|
|
54
|
+
scalar Time
|
|
55
|
+
|
|
56
|
+
enum ColumnsEnum {
|
|
57
|
+
a
|
|
58
|
+
b
|
|
59
|
+
c
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
input ColumnsUniqueWhere {
|
|
63
|
+
id: UUID
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
input ColumnsWhere {
|
|
67
|
+
id: UUIDCondition
|
|
68
|
+
string: StringCondition
|
|
69
|
+
int: IntCondition
|
|
70
|
+
float: FloatCondition
|
|
71
|
+
boolean: BooleanCondition
|
|
72
|
+
date: DateCondition
|
|
73
|
+
dateTime: DateTimeCondition
|
|
74
|
+
json: JsonCondition
|
|
75
|
+
uuid: UUIDCondition
|
|
76
|
+
time: TimeCondition
|
|
77
|
+
enum: ColumnsEnumEnumCondition
|
|
78
|
+
and: [ColumnsWhere]
|
|
79
|
+
or: [ColumnsWhere]
|
|
80
|
+
not: ColumnsWhere
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
input UUIDCondition {
|
|
84
|
+
and: [UUIDCondition!]
|
|
85
|
+
or: [UUIDCondition!]
|
|
86
|
+
not: UUIDCondition
|
|
87
|
+
null: Boolean
|
|
88
|
+
isNull: Boolean
|
|
89
|
+
eq: UUID
|
|
90
|
+
notEq: UUID
|
|
91
|
+
in: [UUID!]
|
|
92
|
+
notIn: [UUID!]
|
|
93
|
+
lt: UUID
|
|
94
|
+
lte: UUID
|
|
95
|
+
gt: UUID
|
|
96
|
+
gte: UUID
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
input StringCondition {
|
|
100
|
+
and: [StringCondition!]
|
|
101
|
+
or: [StringCondition!]
|
|
102
|
+
not: StringCondition
|
|
103
|
+
null: Boolean
|
|
104
|
+
isNull: Boolean
|
|
105
|
+
eq: String
|
|
106
|
+
notEq: String
|
|
107
|
+
in: [String!]
|
|
108
|
+
notIn: [String!]
|
|
109
|
+
lt: String
|
|
110
|
+
lte: String
|
|
111
|
+
gt: String
|
|
112
|
+
gte: String
|
|
113
|
+
contains: String
|
|
114
|
+
startsWith: String
|
|
115
|
+
endsWith: String
|
|
116
|
+
containsCI: String
|
|
117
|
+
startsWithCI: String
|
|
118
|
+
endsWithCI: String
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
input IntCondition {
|
|
122
|
+
and: [IntCondition!]
|
|
123
|
+
or: [IntCondition!]
|
|
124
|
+
not: IntCondition
|
|
125
|
+
null: Boolean
|
|
126
|
+
isNull: Boolean
|
|
127
|
+
eq: Int
|
|
128
|
+
notEq: Int
|
|
129
|
+
in: [Int!]
|
|
130
|
+
notIn: [Int!]
|
|
131
|
+
lt: Int
|
|
132
|
+
lte: Int
|
|
133
|
+
gt: Int
|
|
134
|
+
gte: Int
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
input FloatCondition {
|
|
138
|
+
and: [FloatCondition!]
|
|
139
|
+
or: [FloatCondition!]
|
|
140
|
+
not: FloatCondition
|
|
141
|
+
null: Boolean
|
|
142
|
+
isNull: Boolean
|
|
143
|
+
eq: Float
|
|
144
|
+
notEq: Float
|
|
145
|
+
in: [Float!]
|
|
146
|
+
notIn: [Float!]
|
|
147
|
+
lt: Float
|
|
148
|
+
lte: Float
|
|
149
|
+
gt: Float
|
|
150
|
+
gte: Float
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
input BooleanCondition {
|
|
154
|
+
and: [BooleanCondition!]
|
|
155
|
+
or: [BooleanCondition!]
|
|
156
|
+
not: BooleanCondition
|
|
157
|
+
null: Boolean
|
|
158
|
+
isNull: Boolean
|
|
159
|
+
eq: Boolean
|
|
160
|
+
notEq: Boolean
|
|
161
|
+
in: [Boolean!]
|
|
162
|
+
notIn: [Boolean!]
|
|
163
|
+
lt: Boolean
|
|
164
|
+
lte: Boolean
|
|
165
|
+
gt: Boolean
|
|
166
|
+
gte: Boolean
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
input DateCondition {
|
|
170
|
+
and: [DateCondition!]
|
|
171
|
+
or: [DateCondition!]
|
|
172
|
+
not: DateCondition
|
|
173
|
+
null: Boolean
|
|
174
|
+
isNull: Boolean
|
|
175
|
+
eq: Date
|
|
176
|
+
notEq: Date
|
|
177
|
+
in: [Date!]
|
|
178
|
+
notIn: [Date!]
|
|
179
|
+
lt: Date
|
|
180
|
+
lte: Date
|
|
181
|
+
gt: Date
|
|
182
|
+
gte: Date
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
input DateTimeCondition {
|
|
186
|
+
and: [DateTimeCondition!]
|
|
187
|
+
or: [DateTimeCondition!]
|
|
188
|
+
not: DateTimeCondition
|
|
189
|
+
null: Boolean
|
|
190
|
+
isNull: Boolean
|
|
191
|
+
eq: DateTime
|
|
192
|
+
notEq: DateTime
|
|
193
|
+
in: [DateTime!]
|
|
194
|
+
notIn: [DateTime!]
|
|
195
|
+
lt: DateTime
|
|
196
|
+
lte: DateTime
|
|
197
|
+
gt: DateTime
|
|
198
|
+
gte: DateTime
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
input JsonCondition {
|
|
202
|
+
and: [JsonCondition!]
|
|
203
|
+
or: [JsonCondition!]
|
|
204
|
+
not: JsonCondition
|
|
205
|
+
null: Boolean
|
|
206
|
+
isNull: Boolean
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
input TimeCondition {
|
|
210
|
+
and: [TimeCondition!]
|
|
211
|
+
or: [TimeCondition!]
|
|
212
|
+
not: TimeCondition
|
|
213
|
+
null: Boolean
|
|
214
|
+
isNull: Boolean
|
|
215
|
+
eq: Time
|
|
216
|
+
notEq: Time
|
|
217
|
+
in: [Time!]
|
|
218
|
+
notIn: [Time!]
|
|
219
|
+
lt: Time
|
|
220
|
+
lte: Time
|
|
221
|
+
gt: Time
|
|
222
|
+
gte: Time
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
input ColumnsEnumEnumCondition {
|
|
226
|
+
and: [ColumnsEnumEnumCondition!]
|
|
227
|
+
or: [ColumnsEnumEnumCondition!]
|
|
228
|
+
not: ColumnsEnumEnumCondition
|
|
229
|
+
null: Boolean
|
|
230
|
+
isNull: Boolean
|
|
231
|
+
eq: ColumnsEnum
|
|
232
|
+
notEq: ColumnsEnum
|
|
233
|
+
in: [ColumnsEnum!]
|
|
234
|
+
notIn: [ColumnsEnum!]
|
|
235
|
+
lt: ColumnsEnum
|
|
236
|
+
lte: ColumnsEnum
|
|
237
|
+
gt: ColumnsEnum
|
|
238
|
+
gte: ColumnsEnum
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
input ColumnsOrderBy {
|
|
242
|
+
_random: Boolean
|
|
243
|
+
_randomSeeded: Int
|
|
244
|
+
id: OrderDirection
|
|
245
|
+
string: OrderDirection
|
|
246
|
+
int: OrderDirection
|
|
247
|
+
float: OrderDirection
|
|
248
|
+
boolean: OrderDirection
|
|
249
|
+
date: OrderDirection
|
|
250
|
+
dateTime: OrderDirection
|
|
251
|
+
json: OrderDirection
|
|
252
|
+
uuid: OrderDirection
|
|
253
|
+
time: OrderDirection
|
|
254
|
+
enum: OrderDirection
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
enum OrderDirection {
|
|
258
|
+
asc
|
|
259
|
+
desc
|
|
260
|
+
ascNullsFirst
|
|
261
|
+
descNullsLast
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
type ColumnsConnection {
|
|
265
|
+
pageInfo: PageInfo!
|
|
266
|
+
edges: [ColumnsEdge!]!
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
type PageInfo {
|
|
270
|
+
totalCount: Int!
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
type ColumnsEdge {
|
|
274
|
+
node: Columns!
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
type _ValidationResult {
|
|
278
|
+
valid: Boolean!
|
|
279
|
+
errors: [_ValidationError!]!
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
type _ValidationError {
|
|
283
|
+
path: [_PathFragment!]!
|
|
284
|
+
message: _ValidationMessage!
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
union _PathFragment = _FieldPathFragment | _IndexPathFragment
|
|
288
|
+
|
|
289
|
+
type _FieldPathFragment {
|
|
290
|
+
field: String!
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
type _IndexPathFragment {
|
|
294
|
+
index: Int!
|
|
295
|
+
alias: String
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
type _ValidationMessage {
|
|
299
|
+
text: String!
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
input ColumnsCreateInput {
|
|
303
|
+
string: String
|
|
304
|
+
int: Int
|
|
305
|
+
float: Float
|
|
306
|
+
boolean: Boolean
|
|
307
|
+
date: Date
|
|
308
|
+
dateTime: DateTime
|
|
309
|
+
json: Json
|
|
310
|
+
uuid: UUID
|
|
311
|
+
time: Time
|
|
312
|
+
enum: ColumnsEnum
|
|
313
|
+
_dummy_field_: Boolean
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
input ColumnsUpdateInput {
|
|
317
|
+
string: String
|
|
318
|
+
int: Int
|
|
319
|
+
float: Float
|
|
320
|
+
boolean: Boolean
|
|
321
|
+
date: Date
|
|
322
|
+
dateTime: DateTime
|
|
323
|
+
json: Json
|
|
324
|
+
uuid: UUID
|
|
325
|
+
time: Time
|
|
326
|
+
enum: ColumnsEnum
|
|
327
|
+
_dummy_field_: Boolean
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
type QueryTransaction {
|
|
331
|
+
getColumns(by: ColumnsUniqueWhere!, filter: ColumnsWhere): Columns
|
|
332
|
+
listColumns(filter: ColumnsWhere, orderBy: [ColumnsOrderBy!], offset: Int, limit: Int): [Columns!]!
|
|
333
|
+
paginateColumns(filter: ColumnsWhere, orderBy: [ColumnsOrderBy!], skip: Int, first: Int): ColumnsConnection!
|
|
334
|
+
validateCreateColumns(data: ColumnsCreateInput!): _ValidationResult!
|
|
335
|
+
validateUpdateColumns(by: ColumnsUniqueWhere!, data: ColumnsUpdateInput!): _ValidationResult!
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
type Info {
|
|
339
|
+
description: String
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
type Mutation {
|
|
343
|
+
createColumns(data: ColumnsCreateInput!): ColumnsCreateResult!
|
|
344
|
+
deleteColumns(by: ColumnsUniqueWhere!, filter: ColumnsWhere): ColumnsDeleteResult!
|
|
345
|
+
updateColumns(by: ColumnsUniqueWhere!, filter: ColumnsWhere, data: ColumnsUpdateInput!): ColumnsUpdateResult!
|
|
346
|
+
upsertColumns(by: ColumnsUniqueWhere!, filter: ColumnsWhere, update: ColumnsUpdateInput!, create: ColumnsCreateInput!): ColumnsUpsertResult!
|
|
347
|
+
transaction(options: MutationTransactionOptions): MutationTransaction!
|
|
348
|
+
query: Query!
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
type ColumnsCreateResult implements MutationResult {
|
|
352
|
+
ok: Boolean!
|
|
353
|
+
errorMessage: String
|
|
354
|
+
errors: [_MutationError!]!
|
|
355
|
+
node: Columns
|
|
356
|
+
validation: _ValidationResult!
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
interface MutationResult {
|
|
360
|
+
ok: Boolean!
|
|
361
|
+
errorMessage: String
|
|
362
|
+
errors: [_MutationError!]!
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
type _MutationError {
|
|
366
|
+
path: [_PathFragment!]! @deprecated(reason: "Use `paths`.")
|
|
367
|
+
paths: [[_PathFragment!]!]!
|
|
368
|
+
type: _MutationErrorType!
|
|
369
|
+
message: String
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
enum _MutationErrorType {
|
|
373
|
+
NotNullConstraintViolation
|
|
374
|
+
UniqueConstraintViolation
|
|
375
|
+
ForeignKeyConstraintViolation
|
|
376
|
+
NotFoundOrDenied
|
|
377
|
+
NonUniqueWhereInput
|
|
378
|
+
InvalidDataInput
|
|
379
|
+
SqlError
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
type ColumnsDeleteResult implements MutationResult {
|
|
383
|
+
ok: Boolean!
|
|
384
|
+
errorMessage: String
|
|
385
|
+
errors: [_MutationError!]!
|
|
386
|
+
node: Columns
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
type ColumnsUpdateResult implements MutationResult {
|
|
390
|
+
ok: Boolean!
|
|
391
|
+
errorMessage: String
|
|
392
|
+
errors: [_MutationError!]!
|
|
393
|
+
node: Columns
|
|
394
|
+
validation: _ValidationResult!
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
type ColumnsUpsertResult implements MutationResult {
|
|
398
|
+
ok: Boolean!
|
|
399
|
+
errorMessage: String
|
|
400
|
+
errors: [_MutationError!]!
|
|
401
|
+
node: Columns
|
|
402
|
+
validation: _ValidationResult!
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
type MutationTransaction {
|
|
406
|
+
ok: Boolean!
|
|
407
|
+
errorMessage: String
|
|
408
|
+
errors: [_MutationError!]!
|
|
409
|
+
validation: _ValidationResult!
|
|
410
|
+
createColumns(data: ColumnsCreateInput!): ColumnsCreateResult!
|
|
411
|
+
deleteColumns(by: ColumnsUniqueWhere!, filter: ColumnsWhere): ColumnsDeleteResult!
|
|
412
|
+
updateColumns(by: ColumnsUniqueWhere!, filter: ColumnsWhere, data: ColumnsUpdateInput!): ColumnsUpdateResult!
|
|
413
|
+
upsertColumns(by: ColumnsUniqueWhere!, filter: ColumnsWhere, update: ColumnsUpdateInput!, create: ColumnsCreateInput!): ColumnsUpsertResult!
|
|
414
|
+
query: Query
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
input MutationTransactionOptions {
|
|
418
|
+
deferForeignKeyConstraints: Boolean
|
|
419
|
+
deferUniqueConstraints: Boolean
|
|
420
|
+
}
|