@contember/client-content 2.0.0-alpha.4 → 2.0.0-alpha.40

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