@contember/client-content 2.1.0-alpha.9 → 2.1.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/CLAUDE.md +52 -0
- package/dist/development/src/ContentClient.cjs +12 -0
- package/dist/development/src/ContentClient.cjs.map +1 -1
- package/dist/development/src/ContentClient.js +12 -0
- package/dist/development/src/ContentClient.js.map +1 -1
- package/dist/development/src/ContentQueryBuilder.cjs +26 -15
- package/dist/development/src/ContentQueryBuilder.cjs.map +1 -1
- package/dist/development/src/ContentQueryBuilder.js +26 -15
- package/dist/development/src/ContentQueryBuilder.js.map +1 -1
- package/dist/development/src/MutationFailedError.cjs +11 -0
- package/dist/development/src/MutationFailedError.cjs.map +1 -0
- package/dist/development/src/MutationFailedError.js +11 -0
- package/dist/development/src/MutationFailedError.js.map +1 -0
- package/dist/development/src/nodes/ContentEntitySelection.cjs +47 -12
- package/dist/development/src/nodes/ContentEntitySelection.cjs.map +1 -1
- package/dist/development/src/nodes/ContentEntitySelection.js +47 -12
- package/dist/development/src/nodes/ContentEntitySelection.js.map +1 -1
- package/dist/development/src/nodes/ContentOperation.cjs.map +1 -1
- package/dist/development/src/nodes/ContentOperation.js.map +1 -1
- package/dist/development/src/utils/ContentOperationSet.cjs.map +1 -1
- package/dist/development/src/utils/ContentOperationSet.js.map +1 -1
- package/dist/development/src/utils/createListArgs.cjs.map +1 -1
- package/dist/development/src/utils/createListArgs.js.map +1 -1
- package/dist/development/src/utils/createMutationOperationSet.cjs +8 -6
- package/dist/development/src/utils/createMutationOperationSet.cjs.map +1 -1
- package/dist/development/src/utils/createMutationOperationSet.js +8 -6
- package/dist/development/src/utils/createMutationOperationSet.js.map +1 -1
- package/dist/development/src/utils/createQueryOperationSet.cjs.map +1 -1
- package/dist/development/src/utils/createQueryOperationSet.js.map +1 -1
- package/dist/development/src/utils/createTypedArgs.cjs.map +1 -1
- package/dist/development/src/utils/createTypedArgs.js.map +1 -1
- package/dist/development/src/utils/mutationFragments.cjs.map +1 -1
- package/dist/development/src/utils/mutationFragments.js.map +1 -1
- package/dist/production/src/ContentClient.cjs +12 -0
- package/dist/production/src/ContentClient.cjs.map +1 -1
- package/dist/production/src/ContentClient.js +12 -0
- package/dist/production/src/ContentClient.js.map +1 -1
- package/dist/production/src/ContentQueryBuilder.cjs +26 -15
- package/dist/production/src/ContentQueryBuilder.cjs.map +1 -1
- package/dist/production/src/ContentQueryBuilder.js +26 -15
- package/dist/production/src/ContentQueryBuilder.js.map +1 -1
- package/dist/production/src/MutationFailedError.cjs +11 -0
- package/dist/production/src/MutationFailedError.cjs.map +1 -0
- package/dist/production/src/MutationFailedError.js +11 -0
- package/dist/production/src/MutationFailedError.js.map +1 -0
- package/dist/production/src/nodes/ContentEntitySelection.cjs +47 -12
- package/dist/production/src/nodes/ContentEntitySelection.cjs.map +1 -1
- package/dist/production/src/nodes/ContentEntitySelection.js +47 -12
- package/dist/production/src/nodes/ContentEntitySelection.js.map +1 -1
- package/dist/production/src/nodes/ContentOperation.cjs.map +1 -1
- package/dist/production/src/nodes/ContentOperation.js.map +1 -1
- package/dist/production/src/utils/ContentOperationSet.cjs.map +1 -1
- package/dist/production/src/utils/ContentOperationSet.js.map +1 -1
- package/dist/production/src/utils/createListArgs.cjs.map +1 -1
- package/dist/production/src/utils/createListArgs.js.map +1 -1
- package/dist/production/src/utils/createMutationOperationSet.cjs +8 -6
- package/dist/production/src/utils/createMutationOperationSet.cjs.map +1 -1
- package/dist/production/src/utils/createMutationOperationSet.js +8 -6
- package/dist/production/src/utils/createMutationOperationSet.js.map +1 -1
- package/dist/production/src/utils/createQueryOperationSet.cjs.map +1 -1
- package/dist/production/src/utils/createQueryOperationSet.js.map +1 -1
- package/dist/production/src/utils/createTypedArgs.cjs.map +1 -1
- package/dist/production/src/utils/createTypedArgs.js.map +1 -1
- package/dist/production/src/utils/mutationFragments.cjs.map +1 -1
- package/dist/production/src/utils/mutationFragments.js.map +1 -1
- package/dist/types/ContentClient.d.ts +10 -0
- package/dist/types/ContentClient.d.ts.map +1 -1
- package/dist/types/ContentQueryBuilder.d.ts.map +1 -1
- package/dist/types/MutationFailedError.d.ts +13 -0
- package/dist/types/MutationFailedError.d.ts.map +1 -0
- package/dist/types/TypedContentQueryBuilder.d.ts.map +1 -1
- package/dist/types/nodes/ContentEntitySelection.d.ts +4 -1
- package/dist/types/nodes/ContentEntitySelection.d.ts.map +1 -1
- package/dist/types/nodes/TypedEntitySelection.d.ts +1 -0
- package/dist/types/nodes/TypedEntitySelection.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/dist/types/types/Input.d.ts.map +1 -1
- package/dist/types/types/Result.d.ts +30 -9
- package/dist/types/types/Result.d.ts.map +1 -1
- package/dist/types/utils/createListArgs.d.ts.map +1 -1
- package/dist/types/utils/createMutationOperationSet.d.ts.map +1 -1
- package/dist/types/utils/createQueryOperationSet.d.ts.map +1 -1
- package/package.json +6 -6
- package/src/ContentClient.ts +36 -9
- package/src/ContentQueryBuilder.ts +45 -35
- package/src/MutationFailedError.ts +19 -0
- package/src/TypedContentQueryBuilder.ts +0 -4
- package/src/nodes/ContentEntitySelection.ts +67 -23
- package/src/nodes/TypedEntitySelection.ts +96 -48
- package/src/types/Input.ts +1 -9
- package/src/types/Result.ts +41 -9
- package/src/types/Schema.ts +0 -1
- package/src/utils/createListArgs.ts +5 -1
- package/src/utils/createMutationOperationSet.ts +9 -7
- package/src/utils/createQueryOperationSet.ts +0 -1
- package/tests/cases/unit/__snapshots__/mutation.test.ts.snap +952 -818
- package/tests/cases/unit/__snapshots__/query.test.ts.snap +216 -60
- package/tests/cases/unit/mutation.test.ts +48 -3
- package/tests/cases/unit/query.test.ts +103 -82
- package/tests/cases/unit/types.test.ts +31 -27
- package/tests/client/entities.ts +2 -0
- package/tests/client/enums.ts +5 -0
- package/tests/client/names.ts +129 -117
- package/tests/generate.ts +0 -1
- package/tests/lib.ts +0 -1
- package/tests/schema.ts +1 -2
|
@@ -1,116 +1,126 @@
|
|
|
1
|
-
// Bun Snapshot v1, https://
|
|
1
|
+
// Bun Snapshot v1, https://bun.sh/docs/test/snapshots
|
|
2
2
|
|
|
3
3
|
exports[`mutations in trx create trx 1`] = `
|
|
4
4
|
"mutation($MutationTransactionOptions_0: MutationTransactionOptions, $AuthorCreateInput_1: AuthorCreateInput!) {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
5
|
+
mut: transaction(options: $MutationTransactionOptions_0) {
|
|
6
|
+
ok
|
|
7
|
+
errorMessage
|
|
8
|
+
errors {
|
|
9
|
+
... MutationError
|
|
10
|
+
}
|
|
11
|
+
validation {
|
|
12
|
+
... ValidationResult
|
|
13
|
+
}
|
|
14
|
+
mut: createAuthor(data: $AuthorCreateInput_1) {
|
|
15
|
+
ok
|
|
16
|
+
errorMessage
|
|
17
|
+
errors {
|
|
18
|
+
... MutationError
|
|
19
|
+
}
|
|
20
|
+
validation {
|
|
21
|
+
... ValidationResult
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
25
|
}
|
|
26
26
|
fragment MutationError on _MutationError {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
27
|
+
paths {
|
|
28
|
+
... on _FieldPathFragment {
|
|
29
|
+
field
|
|
30
|
+
}
|
|
31
|
+
... on _IndexPathFragment {
|
|
32
|
+
index
|
|
33
|
+
alias
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
message
|
|
37
|
+
type
|
|
38
38
|
}
|
|
39
39
|
fragment ValidationResult on _ValidationResult {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
40
|
+
valid
|
|
41
|
+
errors {
|
|
42
|
+
path {
|
|
43
|
+
... on _FieldPathFragment {
|
|
44
|
+
field
|
|
45
|
+
}
|
|
46
|
+
... on _IndexPathFragment {
|
|
47
|
+
index
|
|
48
|
+
alias
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
message {
|
|
52
|
+
text
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
55
|
}
|
|
56
56
|
"
|
|
57
57
|
`;
|
|
58
58
|
|
|
59
|
+
exports[`mutations in trx create trx 2`] = `
|
|
60
|
+
{
|
|
61
|
+
"AuthorCreateInput_1": {
|
|
62
|
+
"email": "xx@localhost",
|
|
63
|
+
"name": "John",
|
|
64
|
+
},
|
|
65
|
+
"MutationTransactionOptions_0": {},
|
|
66
|
+
}
|
|
67
|
+
`;
|
|
68
|
+
|
|
59
69
|
exports[`mutations in trx mutation with a node 1`] = `
|
|
60
70
|
"mutation($MutationTransactionOptions_0: MutationTransactionOptions, $AuthorCreateInput_1: AuthorCreateInput!) {
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
71
|
+
mut: transaction(options: $MutationTransactionOptions_0) {
|
|
72
|
+
ok
|
|
73
|
+
errorMessage
|
|
74
|
+
errors {
|
|
75
|
+
... MutationError
|
|
76
|
+
}
|
|
77
|
+
validation {
|
|
78
|
+
... ValidationResult
|
|
79
|
+
}
|
|
80
|
+
mut: createAuthor(data: $AuthorCreateInput_1) {
|
|
81
|
+
ok
|
|
82
|
+
errorMessage
|
|
83
|
+
errors {
|
|
84
|
+
... MutationError
|
|
85
|
+
}
|
|
86
|
+
validation {
|
|
87
|
+
... ValidationResult
|
|
88
|
+
}
|
|
89
|
+
node {
|
|
90
|
+
id
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
84
94
|
}
|
|
85
95
|
fragment MutationError on _MutationError {
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
96
|
+
paths {
|
|
97
|
+
... on _FieldPathFragment {
|
|
98
|
+
field
|
|
99
|
+
}
|
|
100
|
+
... on _IndexPathFragment {
|
|
101
|
+
index
|
|
102
|
+
alias
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
message
|
|
106
|
+
type
|
|
97
107
|
}
|
|
98
108
|
fragment ValidationResult on _ValidationResult {
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
109
|
+
valid
|
|
110
|
+
errors {
|
|
111
|
+
path {
|
|
112
|
+
... on _FieldPathFragment {
|
|
113
|
+
field
|
|
114
|
+
}
|
|
115
|
+
... on _IndexPathFragment {
|
|
116
|
+
index
|
|
117
|
+
alias
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
message {
|
|
121
|
+
text
|
|
122
|
+
}
|
|
123
|
+
}
|
|
114
124
|
}
|
|
115
125
|
"
|
|
116
126
|
`;
|
|
@@ -127,56 +137,56 @@ exports[`mutations in trx mutation with a node 2`] = `
|
|
|
127
137
|
|
|
128
138
|
exports[`mutations in trx update 1`] = `
|
|
129
139
|
"mutation($MutationTransactionOptions_0: MutationTransactionOptions, $AuthorUniqueWhere_1: AuthorUniqueWhere!, $AuthorUpdateInput_2: AuthorUpdateInput!) {
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
140
|
+
mut: transaction(options: $MutationTransactionOptions_0) {
|
|
141
|
+
ok
|
|
142
|
+
errorMessage
|
|
143
|
+
errors {
|
|
144
|
+
... MutationError
|
|
145
|
+
}
|
|
146
|
+
validation {
|
|
147
|
+
... ValidationResult
|
|
148
|
+
}
|
|
149
|
+
mut: updateAuthor(by: $AuthorUniqueWhere_1, data: $AuthorUpdateInput_2) {
|
|
150
|
+
ok
|
|
151
|
+
errorMessage
|
|
152
|
+
errors {
|
|
153
|
+
... MutationError
|
|
154
|
+
}
|
|
155
|
+
validation {
|
|
156
|
+
... ValidationResult
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
}
|
|
150
160
|
}
|
|
151
161
|
fragment MutationError on _MutationError {
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
162
|
+
paths {
|
|
163
|
+
... on _FieldPathFragment {
|
|
164
|
+
field
|
|
165
|
+
}
|
|
166
|
+
... on _IndexPathFragment {
|
|
167
|
+
index
|
|
168
|
+
alias
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
message
|
|
172
|
+
type
|
|
163
173
|
}
|
|
164
174
|
fragment ValidationResult on _ValidationResult {
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
175
|
+
valid
|
|
176
|
+
errors {
|
|
177
|
+
path {
|
|
178
|
+
... on _FieldPathFragment {
|
|
179
|
+
field
|
|
180
|
+
}
|
|
181
|
+
... on _IndexPathFragment {
|
|
182
|
+
index
|
|
183
|
+
alias
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
message {
|
|
187
|
+
text
|
|
188
|
+
}
|
|
189
|
+
}
|
|
180
190
|
}
|
|
181
191
|
"
|
|
182
192
|
`;
|
|
@@ -196,53 +206,53 @@ exports[`mutations in trx update 2`] = `
|
|
|
196
206
|
|
|
197
207
|
exports[`mutations in trx delete 1`] = `
|
|
198
208
|
"mutation($MutationTransactionOptions_0: MutationTransactionOptions, $AuthorUniqueWhere_1: AuthorUniqueWhere!) {
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
209
|
+
mut: transaction(options: $MutationTransactionOptions_0) {
|
|
210
|
+
ok
|
|
211
|
+
errorMessage
|
|
212
|
+
errors {
|
|
213
|
+
... MutationError
|
|
214
|
+
}
|
|
215
|
+
validation {
|
|
216
|
+
... ValidationResult
|
|
217
|
+
}
|
|
218
|
+
mut: deleteAuthor(by: $AuthorUniqueWhere_1) {
|
|
219
|
+
ok
|
|
220
|
+
errorMessage
|
|
221
|
+
errors {
|
|
222
|
+
... MutationError
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
}
|
|
216
226
|
}
|
|
217
227
|
fragment MutationError on _MutationError {
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
228
|
+
paths {
|
|
229
|
+
... on _FieldPathFragment {
|
|
230
|
+
field
|
|
231
|
+
}
|
|
232
|
+
... on _IndexPathFragment {
|
|
233
|
+
index
|
|
234
|
+
alias
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
message
|
|
238
|
+
type
|
|
229
239
|
}
|
|
230
240
|
fragment ValidationResult on _ValidationResult {
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
241
|
+
valid
|
|
242
|
+
errors {
|
|
243
|
+
path {
|
|
244
|
+
... on _FieldPathFragment {
|
|
245
|
+
field
|
|
246
|
+
}
|
|
247
|
+
... on _IndexPathFragment {
|
|
248
|
+
index
|
|
249
|
+
alias
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
message {
|
|
253
|
+
text
|
|
254
|
+
}
|
|
255
|
+
}
|
|
246
256
|
}
|
|
247
257
|
"
|
|
248
258
|
`;
|
|
@@ -258,56 +268,56 @@ exports[`mutations in trx delete 2`] = `
|
|
|
258
268
|
|
|
259
269
|
exports[`mutations in trx upsert 1`] = `
|
|
260
270
|
"mutation($MutationTransactionOptions_0: MutationTransactionOptions, $AuthorUniqueWhere_1: AuthorUniqueWhere!, $AuthorCreateInput_2: AuthorCreateInput!, $AuthorUpdateInput_3: AuthorUpdateInput!) {
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
271
|
+
mut: transaction(options: $MutationTransactionOptions_0) {
|
|
272
|
+
ok
|
|
273
|
+
errorMessage
|
|
274
|
+
errors {
|
|
275
|
+
... MutationError
|
|
276
|
+
}
|
|
277
|
+
validation {
|
|
278
|
+
... ValidationResult
|
|
279
|
+
}
|
|
280
|
+
mut: upsertAuthor(by: $AuthorUniqueWhere_1, create: $AuthorCreateInput_2, update: $AuthorUpdateInput_3) {
|
|
281
|
+
ok
|
|
282
|
+
errorMessage
|
|
283
|
+
errors {
|
|
284
|
+
... MutationError
|
|
285
|
+
}
|
|
286
|
+
validation {
|
|
287
|
+
... ValidationResult
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
}
|
|
281
291
|
}
|
|
282
292
|
fragment MutationError on _MutationError {
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
293
|
+
paths {
|
|
294
|
+
... on _FieldPathFragment {
|
|
295
|
+
field
|
|
296
|
+
}
|
|
297
|
+
... on _IndexPathFragment {
|
|
298
|
+
index
|
|
299
|
+
alias
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
message
|
|
303
|
+
type
|
|
294
304
|
}
|
|
295
305
|
fragment ValidationResult on _ValidationResult {
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
306
|
+
valid
|
|
307
|
+
errors {
|
|
308
|
+
path {
|
|
309
|
+
... on _FieldPathFragment {
|
|
310
|
+
field
|
|
311
|
+
}
|
|
312
|
+
... on _IndexPathFragment {
|
|
313
|
+
index
|
|
314
|
+
alias
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
message {
|
|
318
|
+
text
|
|
319
|
+
}
|
|
320
|
+
}
|
|
311
321
|
}
|
|
312
322
|
"
|
|
313
323
|
`;
|
|
@@ -331,83 +341,83 @@ exports[`mutations in trx upsert 2`] = `
|
|
|
331
341
|
|
|
332
342
|
exports[`mutations in trx multiple mutations as array 1`] = `
|
|
333
343
|
"mutation($MutationTransactionOptions_0: MutationTransactionOptions, $AuthorCreateInput_1: AuthorCreateInput!, $AuthorCreateInput_2: AuthorCreateInput!) {
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
344
|
+
mut: transaction(options: $MutationTransactionOptions_0) {
|
|
345
|
+
ok
|
|
346
|
+
errorMessage
|
|
347
|
+
errors {
|
|
348
|
+
... MutationError
|
|
349
|
+
}
|
|
350
|
+
validation {
|
|
351
|
+
... ValidationResult
|
|
352
|
+
}
|
|
353
|
+
mut_0: createAuthor(data: $AuthorCreateInput_1) {
|
|
354
|
+
ok
|
|
355
|
+
errorMessage
|
|
356
|
+
errors {
|
|
357
|
+
... MutationError
|
|
358
|
+
}
|
|
359
|
+
validation {
|
|
360
|
+
... ValidationResult
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
mut_1: createAuthor(data: $AuthorCreateInput_2) {
|
|
364
|
+
ok
|
|
365
|
+
errorMessage
|
|
366
|
+
errors {
|
|
367
|
+
... MutationError
|
|
368
|
+
}
|
|
369
|
+
validation {
|
|
370
|
+
... ValidationResult
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
}
|
|
364
374
|
}
|
|
365
375
|
fragment MutationError on _MutationError {
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
376
|
+
paths {
|
|
377
|
+
... on _FieldPathFragment {
|
|
378
|
+
field
|
|
379
|
+
}
|
|
380
|
+
... on _IndexPathFragment {
|
|
381
|
+
index
|
|
382
|
+
alias
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
message
|
|
386
|
+
type
|
|
377
387
|
}
|
|
378
388
|
fragment ValidationResult on _ValidationResult {
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
389
|
+
valid
|
|
390
|
+
errors {
|
|
391
|
+
path {
|
|
392
|
+
... on _FieldPathFragment {
|
|
393
|
+
field
|
|
394
|
+
}
|
|
395
|
+
... on _IndexPathFragment {
|
|
396
|
+
index
|
|
397
|
+
alias
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
message {
|
|
401
|
+
text
|
|
402
|
+
}
|
|
403
|
+
}
|
|
394
404
|
}
|
|
395
405
|
"
|
|
396
406
|
`;
|
|
397
407
|
|
|
398
408
|
exports[`mutations in trx multiple mutations as array:
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
409
|
+
{
|
|
410
|
+
"AuthorCreateInput_1": {
|
|
411
|
+
"email": "xx@localhost",
|
|
412
|
+
"name": "John",
|
|
413
|
+
},
|
|
414
|
+
"AuthorCreateInput_2": {
|
|
415
|
+
"email": "xx@localhost",
|
|
416
|
+
"name": "John",
|
|
417
|
+
},
|
|
418
|
+
"MutationTransactionOptions_0": {},
|
|
419
|
+
}
|
|
420
|
+
1`] = `
|
|
411
421
|
{
|
|
412
422
|
"AuthorCreateInput_1": {
|
|
413
423
|
"email": "xx@localhost",
|
|
@@ -422,147 +432,147 @@ exports[`mutations in trx multiple mutations as array:
|
|
|
422
432
|
`;
|
|
423
433
|
|
|
424
434
|
exports[`mutations in trx multiple named mutations trx:
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
435
|
+
"mutation($MutationTransactionOptions_0: MutationTransactionOptions, $AuthorCreateInput_1: AuthorCreateInput!, $PostCreateInput_2: PostCreateInput!) {
|
|
436
|
+
mut: transaction(options: $MutationTransactionOptions_0) {
|
|
437
|
+
ok
|
|
438
|
+
errorMessage
|
|
439
|
+
errors {
|
|
440
|
+
... MutationError
|
|
441
|
+
}
|
|
442
|
+
validation {
|
|
443
|
+
... ValidationResult
|
|
444
|
+
}
|
|
445
|
+
createAuthor(data: $AuthorCreateInput_1) {
|
|
446
|
+
ok
|
|
447
|
+
errorMessage
|
|
448
|
+
errors {
|
|
449
|
+
... MutationError
|
|
450
|
+
}
|
|
451
|
+
validation {
|
|
452
|
+
... ValidationResult
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
createPost(data: $PostCreateInput_2) {
|
|
456
|
+
ok
|
|
457
|
+
errorMessage
|
|
458
|
+
errors {
|
|
459
|
+
... MutationError
|
|
460
|
+
}
|
|
461
|
+
validation {
|
|
462
|
+
... ValidationResult
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
}
|
|
466
|
+
}
|
|
467
|
+
fragment MutationError on _MutationError {
|
|
468
|
+
paths {
|
|
469
|
+
... on _FieldPathFragment {
|
|
470
|
+
field
|
|
471
|
+
}
|
|
472
|
+
... on _IndexPathFragment {
|
|
473
|
+
index
|
|
474
|
+
alias
|
|
475
|
+
}
|
|
476
|
+
}
|
|
477
|
+
message
|
|
478
|
+
type
|
|
479
|
+
}
|
|
480
|
+
fragment ValidationResult on _ValidationResult {
|
|
481
|
+
valid
|
|
482
|
+
errors {
|
|
483
|
+
path {
|
|
484
|
+
... on _FieldPathFragment {
|
|
485
|
+
field
|
|
486
|
+
}
|
|
487
|
+
... on _IndexPathFragment {
|
|
488
|
+
index
|
|
489
|
+
alias
|
|
490
|
+
}
|
|
491
|
+
}
|
|
492
|
+
message {
|
|
493
|
+
text
|
|
494
|
+
}
|
|
495
|
+
}
|
|
496
|
+
}
|
|
497
|
+
"
|
|
498
|
+
1`] = `
|
|
489
499
|
"mutation($MutationTransactionOptions_0: MutationTransactionOptions, $AuthorCreateInput_1: AuthorCreateInput!, $PostCreateInput_2: PostCreateInput!) {
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
500
|
+
mut: transaction(options: $MutationTransactionOptions_0) {
|
|
501
|
+
ok
|
|
502
|
+
errorMessage
|
|
503
|
+
errors {
|
|
504
|
+
... MutationError
|
|
505
|
+
}
|
|
506
|
+
validation {
|
|
507
|
+
... ValidationResult
|
|
508
|
+
}
|
|
509
|
+
createAuthor(data: $AuthorCreateInput_1) {
|
|
510
|
+
ok
|
|
511
|
+
errorMessage
|
|
512
|
+
errors {
|
|
513
|
+
... MutationError
|
|
514
|
+
}
|
|
515
|
+
validation {
|
|
516
|
+
... ValidationResult
|
|
517
|
+
}
|
|
518
|
+
}
|
|
519
|
+
createPost(data: $PostCreateInput_2) {
|
|
520
|
+
ok
|
|
521
|
+
errorMessage
|
|
522
|
+
errors {
|
|
523
|
+
... MutationError
|
|
524
|
+
}
|
|
525
|
+
validation {
|
|
526
|
+
... ValidationResult
|
|
527
|
+
}
|
|
528
|
+
}
|
|
529
|
+
}
|
|
520
530
|
}
|
|
521
531
|
fragment MutationError on _MutationError {
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
532
|
+
paths {
|
|
533
|
+
... on _FieldPathFragment {
|
|
534
|
+
field
|
|
535
|
+
}
|
|
536
|
+
... on _IndexPathFragment {
|
|
537
|
+
index
|
|
538
|
+
alias
|
|
539
|
+
}
|
|
540
|
+
}
|
|
541
|
+
message
|
|
542
|
+
type
|
|
533
543
|
}
|
|
534
544
|
fragment ValidationResult on _ValidationResult {
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
545
|
+
valid
|
|
546
|
+
errors {
|
|
547
|
+
path {
|
|
548
|
+
... on _FieldPathFragment {
|
|
549
|
+
field
|
|
550
|
+
}
|
|
551
|
+
... on _IndexPathFragment {
|
|
552
|
+
index
|
|
553
|
+
alias
|
|
554
|
+
}
|
|
555
|
+
}
|
|
556
|
+
message {
|
|
557
|
+
text
|
|
558
|
+
}
|
|
559
|
+
}
|
|
550
560
|
}
|
|
551
561
|
"
|
|
552
562
|
`;
|
|
553
563
|
|
|
554
564
|
exports[`mutations in trx multiple named mutations trx:
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
565
|
+
{
|
|
566
|
+
"AuthorCreateInput_1": {
|
|
567
|
+
"email": "xx@localhost",
|
|
568
|
+
"name": "John",
|
|
569
|
+
},
|
|
570
|
+
"MutationTransactionOptions_0": {},
|
|
571
|
+
"PostCreateInput_2": {
|
|
572
|
+
"publishedAt": "now",
|
|
573
|
+
},
|
|
574
|
+
}
|
|
575
|
+
1`] = `
|
|
566
576
|
{
|
|
567
577
|
"AuthorCreateInput_1": {
|
|
568
578
|
"email": "xx@localhost",
|
|
@@ -577,62 +587,63 @@ exports[`mutations in trx multiple named mutations trx:
|
|
|
577
587
|
|
|
578
588
|
exports[`mutations in trx mutation and query combo trx 1`] = `
|
|
579
589
|
"mutation($MutationTransactionOptions_0: MutationTransactionOptions, $PostCreateInput_1: PostCreateInput!, $PostUniqueWhere_2: PostUniqueWhere!) {
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
590
|
+
mut: transaction(options: $MutationTransactionOptions_0) {
|
|
591
|
+
ok
|
|
592
|
+
errorMessage
|
|
593
|
+
errors {
|
|
594
|
+
... MutationError
|
|
595
|
+
}
|
|
596
|
+
validation {
|
|
597
|
+
... ValidationResult
|
|
598
|
+
}
|
|
599
|
+
createPost(data: $PostCreateInput_1) {
|
|
600
|
+
ok
|
|
601
|
+
errorMessage
|
|
602
|
+
errors {
|
|
603
|
+
... MutationError
|
|
604
|
+
}
|
|
605
|
+
validation {
|
|
606
|
+
... ValidationResult
|
|
607
|
+
}
|
|
608
|
+
}
|
|
609
|
+
post: query {
|
|
610
|
+
value: getPost(by: $PostUniqueWhere_2) {
|
|
611
|
+
id
|
|
612
|
+
publishedAt
|
|
613
|
+
status
|
|
614
|
+
}
|
|
615
|
+
}
|
|
616
|
+
}
|
|
606
617
|
}
|
|
607
618
|
fragment MutationError on _MutationError {
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
+
paths {
|
|
620
|
+
... on _FieldPathFragment {
|
|
621
|
+
field
|
|
622
|
+
}
|
|
623
|
+
... on _IndexPathFragment {
|
|
624
|
+
index
|
|
625
|
+
alias
|
|
626
|
+
}
|
|
627
|
+
}
|
|
628
|
+
message
|
|
629
|
+
type
|
|
619
630
|
}
|
|
620
631
|
fragment ValidationResult on _ValidationResult {
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
632
|
+
valid
|
|
633
|
+
errors {
|
|
634
|
+
path {
|
|
635
|
+
... on _FieldPathFragment {
|
|
636
|
+
field
|
|
637
|
+
}
|
|
638
|
+
... on _IndexPathFragment {
|
|
639
|
+
index
|
|
640
|
+
alias
|
|
641
|
+
}
|
|
642
|
+
}
|
|
643
|
+
message {
|
|
644
|
+
text
|
|
645
|
+
}
|
|
646
|
+
}
|
|
636
647
|
}
|
|
637
648
|
"
|
|
638
649
|
`;
|
|
@@ -651,46 +662,46 @@ exports[`mutations in trx mutation and query combo trx 2`] = `
|
|
|
651
662
|
|
|
652
663
|
exports[`mutations without trx create 1`] = `
|
|
653
664
|
"mutation($AuthorCreateInput_0: AuthorCreateInput!) {
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
665
|
+
mut: createAuthor(data: $AuthorCreateInput_0) {
|
|
666
|
+
ok
|
|
667
|
+
errorMessage
|
|
668
|
+
errors {
|
|
669
|
+
... MutationError
|
|
670
|
+
}
|
|
671
|
+
validation {
|
|
672
|
+
... ValidationResult
|
|
673
|
+
}
|
|
674
|
+
}
|
|
664
675
|
}
|
|
665
676
|
fragment MutationError on _MutationError {
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
+
paths {
|
|
678
|
+
... on _FieldPathFragment {
|
|
679
|
+
field
|
|
680
|
+
}
|
|
681
|
+
... on _IndexPathFragment {
|
|
682
|
+
index
|
|
683
|
+
alias
|
|
684
|
+
}
|
|
685
|
+
}
|
|
686
|
+
message
|
|
687
|
+
type
|
|
677
688
|
}
|
|
678
689
|
fragment ValidationResult on _ValidationResult {
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
690
|
+
valid
|
|
691
|
+
errors {
|
|
692
|
+
path {
|
|
693
|
+
... on _FieldPathFragment {
|
|
694
|
+
field
|
|
695
|
+
}
|
|
696
|
+
... on _IndexPathFragment {
|
|
697
|
+
index
|
|
698
|
+
alias
|
|
699
|
+
}
|
|
700
|
+
}
|
|
701
|
+
message {
|
|
702
|
+
text
|
|
703
|
+
}
|
|
704
|
+
}
|
|
694
705
|
}
|
|
695
706
|
"
|
|
696
707
|
`;
|
|
@@ -706,49 +717,49 @@ exports[`mutations without trx create 2`] = `
|
|
|
706
717
|
|
|
707
718
|
exports[`mutations without trx mutation with a node 1`] = `
|
|
708
719
|
"mutation($AuthorCreateInput_0: AuthorCreateInput!) {
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
720
|
+
mut: createAuthor(data: $AuthorCreateInput_0) {
|
|
721
|
+
ok
|
|
722
|
+
errorMessage
|
|
723
|
+
errors {
|
|
724
|
+
... MutationError
|
|
725
|
+
}
|
|
726
|
+
validation {
|
|
727
|
+
... ValidationResult
|
|
728
|
+
}
|
|
729
|
+
node {
|
|
730
|
+
id
|
|
731
|
+
}
|
|
732
|
+
}
|
|
722
733
|
}
|
|
723
734
|
fragment MutationError on _MutationError {
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
+
paths {
|
|
736
|
+
... on _FieldPathFragment {
|
|
737
|
+
field
|
|
738
|
+
}
|
|
739
|
+
... on _IndexPathFragment {
|
|
740
|
+
index
|
|
741
|
+
alias
|
|
742
|
+
}
|
|
743
|
+
}
|
|
744
|
+
message
|
|
745
|
+
type
|
|
735
746
|
}
|
|
736
747
|
fragment ValidationResult on _ValidationResult {
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
748
|
+
valid
|
|
749
|
+
errors {
|
|
750
|
+
path {
|
|
751
|
+
... on _FieldPathFragment {
|
|
752
|
+
field
|
|
753
|
+
}
|
|
754
|
+
... on _IndexPathFragment {
|
|
755
|
+
index
|
|
756
|
+
alias
|
|
757
|
+
}
|
|
758
|
+
}
|
|
759
|
+
message {
|
|
760
|
+
text
|
|
761
|
+
}
|
|
762
|
+
}
|
|
752
763
|
}
|
|
753
764
|
"
|
|
754
765
|
`;
|
|
@@ -764,46 +775,46 @@ exports[`mutations without trx mutation with a node 2`] = `
|
|
|
764
775
|
|
|
765
776
|
exports[`mutations without trx update 1`] = `
|
|
766
777
|
"mutation($AuthorUniqueWhere_0: AuthorUniqueWhere!, $AuthorUpdateInput_1: AuthorUpdateInput!) {
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
778
|
+
mut: updateAuthor(by: $AuthorUniqueWhere_0, data: $AuthorUpdateInput_1) {
|
|
779
|
+
ok
|
|
780
|
+
errorMessage
|
|
781
|
+
errors {
|
|
782
|
+
... MutationError
|
|
783
|
+
}
|
|
784
|
+
validation {
|
|
785
|
+
... ValidationResult
|
|
786
|
+
}
|
|
787
|
+
}
|
|
777
788
|
}
|
|
778
789
|
fragment MutationError on _MutationError {
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
+
paths {
|
|
791
|
+
... on _FieldPathFragment {
|
|
792
|
+
field
|
|
793
|
+
}
|
|
794
|
+
... on _IndexPathFragment {
|
|
795
|
+
index
|
|
796
|
+
alias
|
|
797
|
+
}
|
|
798
|
+
}
|
|
799
|
+
message
|
|
800
|
+
type
|
|
790
801
|
}
|
|
791
802
|
fragment ValidationResult on _ValidationResult {
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
803
|
+
valid
|
|
804
|
+
errors {
|
|
805
|
+
path {
|
|
806
|
+
... on _FieldPathFragment {
|
|
807
|
+
field
|
|
808
|
+
}
|
|
809
|
+
... on _IndexPathFragment {
|
|
810
|
+
index
|
|
811
|
+
alias
|
|
812
|
+
}
|
|
813
|
+
}
|
|
814
|
+
message {
|
|
815
|
+
text
|
|
816
|
+
}
|
|
817
|
+
}
|
|
807
818
|
}
|
|
808
819
|
"
|
|
809
820
|
`;
|
|
@@ -822,26 +833,26 @@ exports[`mutations without trx update 2`] = `
|
|
|
822
833
|
|
|
823
834
|
exports[`mutations without trx delete 1`] = `
|
|
824
835
|
"mutation($AuthorUniqueWhere_0: AuthorUniqueWhere!) {
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
836
|
+
mut: deleteAuthor(by: $AuthorUniqueWhere_0) {
|
|
837
|
+
ok
|
|
838
|
+
errorMessage
|
|
839
|
+
errors {
|
|
840
|
+
... MutationError
|
|
841
|
+
}
|
|
842
|
+
}
|
|
832
843
|
}
|
|
833
844
|
fragment MutationError on _MutationError {
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
+
paths {
|
|
846
|
+
... on _FieldPathFragment {
|
|
847
|
+
field
|
|
848
|
+
}
|
|
849
|
+
... on _IndexPathFragment {
|
|
850
|
+
index
|
|
851
|
+
alias
|
|
852
|
+
}
|
|
853
|
+
}
|
|
854
|
+
message
|
|
855
|
+
type
|
|
845
856
|
}
|
|
846
857
|
"
|
|
847
858
|
`;
|
|
@@ -856,46 +867,46 @@ exports[`mutations without trx delete 2`] = `
|
|
|
856
867
|
|
|
857
868
|
exports[`mutations without trx upsert 1`] = `
|
|
858
869
|
"mutation($AuthorUniqueWhere_0: AuthorUniqueWhere!, $AuthorCreateInput_1: AuthorCreateInput!, $AuthorUpdateInput_2: AuthorUpdateInput!) {
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
870
|
+
mut: upsertAuthor(by: $AuthorUniqueWhere_0, create: $AuthorCreateInput_1, update: $AuthorUpdateInput_2) {
|
|
871
|
+
ok
|
|
872
|
+
errorMessage
|
|
873
|
+
errors {
|
|
874
|
+
... MutationError
|
|
875
|
+
}
|
|
876
|
+
validation {
|
|
877
|
+
... ValidationResult
|
|
878
|
+
}
|
|
879
|
+
}
|
|
869
880
|
}
|
|
870
881
|
fragment MutationError on _MutationError {
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
+
paths {
|
|
883
|
+
... on _FieldPathFragment {
|
|
884
|
+
field
|
|
885
|
+
}
|
|
886
|
+
... on _IndexPathFragment {
|
|
887
|
+
index
|
|
888
|
+
alias
|
|
889
|
+
}
|
|
890
|
+
}
|
|
891
|
+
message
|
|
892
|
+
type
|
|
882
893
|
}
|
|
883
894
|
fragment ValidationResult on _ValidationResult {
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
895
|
+
valid
|
|
896
|
+
errors {
|
|
897
|
+
path {
|
|
898
|
+
... on _FieldPathFragment {
|
|
899
|
+
field
|
|
900
|
+
}
|
|
901
|
+
... on _IndexPathFragment {
|
|
902
|
+
index
|
|
903
|
+
alias
|
|
904
|
+
}
|
|
905
|
+
}
|
|
906
|
+
message {
|
|
907
|
+
text
|
|
908
|
+
}
|
|
909
|
+
}
|
|
899
910
|
}
|
|
900
911
|
"
|
|
901
912
|
`;
|
|
@@ -918,56 +929,56 @@ exports[`mutations without trx upsert 2`] = `
|
|
|
918
929
|
|
|
919
930
|
exports[`mutations without trx multiple mutations as array 1`] = `
|
|
920
931
|
"mutation($AuthorCreateInput_0: AuthorCreateInput!, $AuthorCreateInput_1: AuthorCreateInput!) {
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
932
|
+
mut_0: createAuthor(data: $AuthorCreateInput_0) {
|
|
933
|
+
ok
|
|
934
|
+
errorMessage
|
|
935
|
+
errors {
|
|
936
|
+
... MutationError
|
|
937
|
+
}
|
|
938
|
+
validation {
|
|
939
|
+
... ValidationResult
|
|
940
|
+
}
|
|
941
|
+
}
|
|
942
|
+
mut_1: createAuthor(data: $AuthorCreateInput_1) {
|
|
943
|
+
ok
|
|
944
|
+
errorMessage
|
|
945
|
+
errors {
|
|
946
|
+
... MutationError
|
|
947
|
+
}
|
|
948
|
+
validation {
|
|
949
|
+
... ValidationResult
|
|
950
|
+
}
|
|
951
|
+
}
|
|
941
952
|
}
|
|
942
953
|
fragment MutationError on _MutationError {
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
+
paths {
|
|
955
|
+
... on _FieldPathFragment {
|
|
956
|
+
field
|
|
957
|
+
}
|
|
958
|
+
... on _IndexPathFragment {
|
|
959
|
+
index
|
|
960
|
+
alias
|
|
961
|
+
}
|
|
962
|
+
}
|
|
963
|
+
message
|
|
964
|
+
type
|
|
954
965
|
}
|
|
955
966
|
fragment ValidationResult on _ValidationResult {
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
967
|
+
valid
|
|
968
|
+
errors {
|
|
969
|
+
path {
|
|
970
|
+
... on _FieldPathFragment {
|
|
971
|
+
field
|
|
972
|
+
}
|
|
973
|
+
... on _IndexPathFragment {
|
|
974
|
+
index
|
|
975
|
+
alias
|
|
976
|
+
}
|
|
977
|
+
}
|
|
978
|
+
message {
|
|
979
|
+
text
|
|
980
|
+
}
|
|
981
|
+
}
|
|
971
982
|
}
|
|
972
983
|
"
|
|
973
984
|
`;
|
|
@@ -987,56 +998,56 @@ exports[`mutations without trx multiple mutations as array 2`] = `
|
|
|
987
998
|
|
|
988
999
|
exports[`mutations without trx multiple named mutations 1`] = `
|
|
989
1000
|
"mutation($AuthorCreateInput_0: AuthorCreateInput!, $PostCreateInput_1: PostCreateInput!) {
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1001
|
+
createAuthor(data: $AuthorCreateInput_0) {
|
|
1002
|
+
ok
|
|
1003
|
+
errorMessage
|
|
1004
|
+
errors {
|
|
1005
|
+
... MutationError
|
|
1006
|
+
}
|
|
1007
|
+
validation {
|
|
1008
|
+
... ValidationResult
|
|
1009
|
+
}
|
|
1010
|
+
}
|
|
1011
|
+
createPost(data: $PostCreateInput_1) {
|
|
1012
|
+
ok
|
|
1013
|
+
errorMessage
|
|
1014
|
+
errors {
|
|
1015
|
+
... MutationError
|
|
1016
|
+
}
|
|
1017
|
+
validation {
|
|
1018
|
+
... ValidationResult
|
|
1019
|
+
}
|
|
1020
|
+
}
|
|
1010
1021
|
}
|
|
1011
1022
|
fragment MutationError on _MutationError {
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
+
paths {
|
|
1024
|
+
... on _FieldPathFragment {
|
|
1025
|
+
field
|
|
1026
|
+
}
|
|
1027
|
+
... on _IndexPathFragment {
|
|
1028
|
+
index
|
|
1029
|
+
alias
|
|
1030
|
+
}
|
|
1031
|
+
}
|
|
1032
|
+
message
|
|
1033
|
+
type
|
|
1023
1034
|
}
|
|
1024
1035
|
fragment ValidationResult on _ValidationResult {
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1036
|
+
valid
|
|
1037
|
+
errors {
|
|
1038
|
+
path {
|
|
1039
|
+
... on _FieldPathFragment {
|
|
1040
|
+
field
|
|
1041
|
+
}
|
|
1042
|
+
... on _IndexPathFragment {
|
|
1043
|
+
index
|
|
1044
|
+
alias
|
|
1045
|
+
}
|
|
1046
|
+
}
|
|
1047
|
+
message {
|
|
1048
|
+
text
|
|
1049
|
+
}
|
|
1050
|
+
}
|
|
1040
1051
|
}
|
|
1041
1052
|
"
|
|
1042
1053
|
`;
|
|
@@ -1055,52 +1066,53 @@ exports[`mutations without trx multiple named mutations 2`] = `
|
|
|
1055
1066
|
|
|
1056
1067
|
exports[`mutations without trx mutation and query combo 1`] = `
|
|
1057
1068
|
"mutation($PostCreateInput_0: PostCreateInput!, $PostUniqueWhere_1: PostUniqueWhere!) {
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1069
|
+
createPost(data: $PostCreateInput_0) {
|
|
1070
|
+
ok
|
|
1071
|
+
errorMessage
|
|
1072
|
+
errors {
|
|
1073
|
+
... MutationError
|
|
1074
|
+
}
|
|
1075
|
+
validation {
|
|
1076
|
+
... ValidationResult
|
|
1077
|
+
}
|
|
1078
|
+
}
|
|
1079
|
+
post: query {
|
|
1080
|
+
value: getPost(by: $PostUniqueWhere_1) {
|
|
1081
|
+
id
|
|
1082
|
+
publishedAt
|
|
1083
|
+
status
|
|
1084
|
+
}
|
|
1085
|
+
}
|
|
1074
1086
|
}
|
|
1075
1087
|
fragment MutationError on _MutationError {
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1088
|
+
paths {
|
|
1089
|
+
... on _FieldPathFragment {
|
|
1090
|
+
field
|
|
1091
|
+
}
|
|
1092
|
+
... on _IndexPathFragment {
|
|
1093
|
+
index
|
|
1094
|
+
alias
|
|
1095
|
+
}
|
|
1096
|
+
}
|
|
1097
|
+
message
|
|
1098
|
+
type
|
|
1087
1099
|
}
|
|
1088
1100
|
fragment ValidationResult on _ValidationResult {
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1101
|
+
valid
|
|
1102
|
+
errors {
|
|
1103
|
+
path {
|
|
1104
|
+
... on _FieldPathFragment {
|
|
1105
|
+
field
|
|
1106
|
+
}
|
|
1107
|
+
... on _IndexPathFragment {
|
|
1108
|
+
index
|
|
1109
|
+
alias
|
|
1110
|
+
}
|
|
1111
|
+
}
|
|
1112
|
+
message {
|
|
1113
|
+
text
|
|
1114
|
+
}
|
|
1115
|
+
}
|
|
1104
1116
|
}
|
|
1105
1117
|
"
|
|
1106
1118
|
`;
|
|
@@ -1118,46 +1130,46 @@ exports[`mutations without trx mutation and query combo 2`] = `
|
|
|
1118
1130
|
|
|
1119
1131
|
exports[`mutations without trx update locale relation 1`] = `
|
|
1120
1132
|
"mutation($PostUniqueWhere_0: PostUniqueWhere!, $PostUpdateInput_1: PostUpdateInput!) {
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1133
|
+
mut: updatePost(by: $PostUniqueWhere_0, data: $PostUpdateInput_1) {
|
|
1134
|
+
ok
|
|
1135
|
+
errorMessage
|
|
1136
|
+
errors {
|
|
1137
|
+
... MutationError
|
|
1138
|
+
}
|
|
1139
|
+
validation {
|
|
1140
|
+
... ValidationResult
|
|
1141
|
+
}
|
|
1142
|
+
}
|
|
1131
1143
|
}
|
|
1132
1144
|
fragment MutationError on _MutationError {
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1145
|
+
paths {
|
|
1146
|
+
... on _FieldPathFragment {
|
|
1147
|
+
field
|
|
1148
|
+
}
|
|
1149
|
+
... on _IndexPathFragment {
|
|
1150
|
+
index
|
|
1151
|
+
alias
|
|
1152
|
+
}
|
|
1153
|
+
}
|
|
1154
|
+
message
|
|
1155
|
+
type
|
|
1144
1156
|
}
|
|
1145
1157
|
fragment ValidationResult on _ValidationResult {
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1158
|
+
valid
|
|
1159
|
+
errors {
|
|
1160
|
+
path {
|
|
1161
|
+
... on _FieldPathFragment {
|
|
1162
|
+
field
|
|
1163
|
+
}
|
|
1164
|
+
... on _IndexPathFragment {
|
|
1165
|
+
index
|
|
1166
|
+
alias
|
|
1167
|
+
}
|
|
1168
|
+
}
|
|
1169
|
+
message {
|
|
1170
|
+
text
|
|
1171
|
+
}
|
|
1172
|
+
}
|
|
1161
1173
|
}
|
|
1162
1174
|
"
|
|
1163
1175
|
`;
|
|
@@ -1187,7 +1199,129 @@ exports[`mutations without trx update locale relation 2`] = `
|
|
|
1187
1199
|
}
|
|
1188
1200
|
`;
|
|
1189
1201
|
|
|
1190
|
-
exports[`mutations
|
|
1202
|
+
exports[`mutations without trx mutate or fail - fail 1`] = `
|
|
1203
|
+
"mutation($MutationTransactionOptions_0: MutationTransactionOptions, $AuthorCreateInput_1: AuthorCreateInput!) {
|
|
1204
|
+
mut: transaction(options: $MutationTransactionOptions_0) {
|
|
1205
|
+
ok
|
|
1206
|
+
errorMessage
|
|
1207
|
+
errors {
|
|
1208
|
+
... MutationError
|
|
1209
|
+
}
|
|
1210
|
+
validation {
|
|
1211
|
+
... ValidationResult
|
|
1212
|
+
}
|
|
1213
|
+
mut: createAuthor(data: $AuthorCreateInput_1) {
|
|
1214
|
+
ok
|
|
1215
|
+
errorMessage
|
|
1216
|
+
errors {
|
|
1217
|
+
... MutationError
|
|
1218
|
+
}
|
|
1219
|
+
validation {
|
|
1220
|
+
... ValidationResult
|
|
1221
|
+
}
|
|
1222
|
+
}
|
|
1223
|
+
}
|
|
1224
|
+
}
|
|
1225
|
+
fragment MutationError on _MutationError {
|
|
1226
|
+
paths {
|
|
1227
|
+
... on _FieldPathFragment {
|
|
1228
|
+
field
|
|
1229
|
+
}
|
|
1230
|
+
... on _IndexPathFragment {
|
|
1231
|
+
index
|
|
1232
|
+
alias
|
|
1233
|
+
}
|
|
1234
|
+
}
|
|
1235
|
+
message
|
|
1236
|
+
type
|
|
1237
|
+
}
|
|
1238
|
+
fragment ValidationResult on _ValidationResult {
|
|
1239
|
+
valid
|
|
1240
|
+
errors {
|
|
1241
|
+
path {
|
|
1242
|
+
... on _FieldPathFragment {
|
|
1243
|
+
field
|
|
1244
|
+
}
|
|
1245
|
+
... on _IndexPathFragment {
|
|
1246
|
+
index
|
|
1247
|
+
alias
|
|
1248
|
+
}
|
|
1249
|
+
}
|
|
1250
|
+
message {
|
|
1251
|
+
text
|
|
1252
|
+
}
|
|
1253
|
+
}
|
|
1254
|
+
}
|
|
1255
|
+
"
|
|
1256
|
+
`;
|
|
1257
|
+
|
|
1258
|
+
exports[`mutations without trx mutate or fail - fail 2`] = `
|
|
1259
|
+
{
|
|
1260
|
+
"AuthorCreateInput_1": {
|
|
1261
|
+
"email": "xx@localhost",
|
|
1262
|
+
"name": "John",
|
|
1263
|
+
},
|
|
1264
|
+
"MutationTransactionOptions_0": {},
|
|
1265
|
+
}
|
|
1266
|
+
`;
|
|
1267
|
+
|
|
1268
|
+
exports[`mutations without trx mutate or fail - ok 1`] = `
|
|
1269
|
+
"mutation($MutationTransactionOptions_0: MutationTransactionOptions, $AuthorCreateInput_1: AuthorCreateInput!) {
|
|
1270
|
+
mut: transaction(options: $MutationTransactionOptions_0) {
|
|
1271
|
+
ok
|
|
1272
|
+
errorMessage
|
|
1273
|
+
errors {
|
|
1274
|
+
... MutationError
|
|
1275
|
+
}
|
|
1276
|
+
validation {
|
|
1277
|
+
... ValidationResult
|
|
1278
|
+
}
|
|
1279
|
+
mut: createAuthor(data: $AuthorCreateInput_1) {
|
|
1280
|
+
ok
|
|
1281
|
+
errorMessage
|
|
1282
|
+
errors {
|
|
1283
|
+
... MutationError
|
|
1284
|
+
}
|
|
1285
|
+
validation {
|
|
1286
|
+
... ValidationResult
|
|
1287
|
+
}
|
|
1288
|
+
}
|
|
1289
|
+
}
|
|
1290
|
+
}
|
|
1291
|
+
fragment MutationError on _MutationError {
|
|
1292
|
+
paths {
|
|
1293
|
+
... on _FieldPathFragment {
|
|
1294
|
+
field
|
|
1295
|
+
}
|
|
1296
|
+
... on _IndexPathFragment {
|
|
1297
|
+
index
|
|
1298
|
+
alias
|
|
1299
|
+
}
|
|
1300
|
+
}
|
|
1301
|
+
message
|
|
1302
|
+
type
|
|
1303
|
+
}
|
|
1304
|
+
fragment ValidationResult on _ValidationResult {
|
|
1305
|
+
valid
|
|
1306
|
+
errors {
|
|
1307
|
+
path {
|
|
1308
|
+
... on _FieldPathFragment {
|
|
1309
|
+
field
|
|
1310
|
+
}
|
|
1311
|
+
... on _IndexPathFragment {
|
|
1312
|
+
index
|
|
1313
|
+
alias
|
|
1314
|
+
}
|
|
1315
|
+
}
|
|
1316
|
+
message {
|
|
1317
|
+
text
|
|
1318
|
+
}
|
|
1319
|
+
}
|
|
1320
|
+
}
|
|
1321
|
+
"
|
|
1322
|
+
`;
|
|
1323
|
+
|
|
1324
|
+
exports[`mutations without trx mutate or fail - ok 2`] = `
|
|
1191
1325
|
{
|
|
1192
1326
|
"AuthorCreateInput_1": {
|
|
1193
1327
|
"email": "xx@localhost",
|