houdini 0.17.4 → 0.17.5
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/.turbo/turbo-compile.log +2 -2
- package/.turbo/turbo-typedefs.log +2 -2
- package/CHANGELOG.md +6 -0
- package/build/cmd-cjs/index.js +9087 -10224
- package/build/cmd-esm/index.js +9087 -10224
- package/build/codegen/transforms/paginate.d.ts +10 -11
- package/build/codegen-cjs/index.js +9092 -10229
- package/build/codegen-esm/index.js +9092 -10229
- package/build/lib-cjs/index.js +9221 -10358
- package/build/lib-esm/index.js +9221 -10358
- package/build/runtime/lib/network.d.ts +1 -0
- package/build/runtime/lib/networkUtils.d.ts +8 -0
- package/build/runtime-cjs/lib/network.d.ts +1 -0
- package/build/runtime-cjs/lib/network.js +33 -1
- package/build/runtime-cjs/lib/networkUtils.d.ts +8 -0
- package/build/runtime-cjs/lib/networkUtils.js +85 -0
- package/build/runtime-esm/lib/network.d.ts +1 -0
- package/build/runtime-esm/lib/network.js +33 -1
- package/build/runtime-esm/lib/networkUtils.d.ts +8 -0
- package/build/runtime-esm/lib/networkUtils.js +60 -0
- package/build/test-cjs/index.js +9091 -10228
- package/build/test-esm/index.js +9091 -10228
- package/build/vite-cjs/index.js +9149 -10286
- package/build/vite-esm/index.js +9149 -10286
- package/package.json +2 -2
- package/src/codegen/generators/artifacts/artifacts.test.ts +99 -66
- package/src/codegen/generators/artifacts/pagination.test.ts +12 -8
- package/src/codegen/generators/artifacts/policy.test.ts +12 -8
- package/src/codegen/generators/definitions/schema.test.ts +12 -36
- package/src/codegen/generators/persistedQueries/persistedQuery.test.ts +2 -2
- package/src/codegen/transforms/fragmentVariables.test.ts +24 -16
- package/src/codegen/transforms/paginate.test.ts +9 -6
- package/src/codegen/transforms/paginate.ts +2 -2
- package/src/runtime/lib/network.ts +58 -1
- package/src/runtime/lib/networkUtils.ts +151 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "houdini",
|
|
3
|
-
"version": "0.17.
|
|
3
|
+
"version": "0.17.5",
|
|
4
4
|
"description": "The disappearing GraphQL clients",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"devDependencies": {
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"estree-walker": "^3.0.1",
|
|
29
29
|
"fs-extra": "^10.1.0",
|
|
30
30
|
"glob": "^8.0.3",
|
|
31
|
-
"graphql": "^
|
|
31
|
+
"graphql": "^15.8.0",
|
|
32
32
|
"memfs": "^3.4.7",
|
|
33
33
|
"micromatch": "^4.0.5",
|
|
34
34
|
"minimatch": "^5.1.0",
|
|
@@ -42,11 +42,12 @@ test('adds kind, name, and raw, response, and selection', async function () {
|
|
|
42
42
|
export default {
|
|
43
43
|
name: "TestQuery",
|
|
44
44
|
kind: "HoudiniQuery",
|
|
45
|
-
hash: "
|
|
45
|
+
hash: "8e483259f3d69f416c01b6106c0440fa0f916abb4cadb75273f8226a1ff0a5e2",
|
|
46
46
|
|
|
47
47
|
raw: \`query TestQuery {
|
|
48
48
|
version
|
|
49
|
-
}
|
|
49
|
+
}
|
|
50
|
+
\`,
|
|
50
51
|
|
|
51
52
|
rootType: "Query",
|
|
52
53
|
|
|
@@ -75,11 +76,12 @@ test('adds kind, name, and raw, response, and selection', async function () {
|
|
|
75
76
|
export default {
|
|
76
77
|
name: "TestFragment",
|
|
77
78
|
kind: "HoudiniFragment",
|
|
78
|
-
hash: "
|
|
79
|
+
hash: "29c40b5d9f6b0cd77fc3fb46fc1338be4960369a01651d5149c2442a33b48686",
|
|
79
80
|
|
|
80
81
|
raw: \`fragment TestFragment on User {
|
|
81
82
|
firstName
|
|
82
|
-
}
|
|
83
|
+
}
|
|
84
|
+
\`,
|
|
83
85
|
|
|
84
86
|
rootType: "User",
|
|
85
87
|
|
|
@@ -120,7 +122,7 @@ test('selection includes fragments', async function () {
|
|
|
120
122
|
export default {
|
|
121
123
|
name: "TestQuery",
|
|
122
124
|
kind: "HoudiniQuery",
|
|
123
|
-
hash: "
|
|
125
|
+
hash: "2d52c61126b6514cd0f51584ae220d583c1df1db1090d2b44da83b7f59a4022c",
|
|
124
126
|
|
|
125
127
|
raw: \`query TestQuery {
|
|
126
128
|
user {
|
|
@@ -131,7 +133,8 @@ test('selection includes fragments', async function () {
|
|
|
131
133
|
|
|
132
134
|
fragment TestFragment on User {
|
|
133
135
|
firstName
|
|
134
|
-
}
|
|
136
|
+
}
|
|
137
|
+
\`,
|
|
135
138
|
|
|
136
139
|
rootType: "Query",
|
|
137
140
|
|
|
@@ -172,11 +175,12 @@ test('selection includes fragments', async function () {
|
|
|
172
175
|
export default {
|
|
173
176
|
name: "TestFragment",
|
|
174
177
|
kind: "HoudiniFragment",
|
|
175
|
-
hash: "
|
|
178
|
+
hash: "29c40b5d9f6b0cd77fc3fb46fc1338be4960369a01651d5149c2442a33b48686",
|
|
176
179
|
|
|
177
180
|
raw: \`fragment TestFragment on User {
|
|
178
181
|
firstName
|
|
179
|
-
}
|
|
182
|
+
}
|
|
183
|
+
\`,
|
|
180
184
|
|
|
181
185
|
rootType: "User",
|
|
182
186
|
|
|
@@ -211,7 +215,7 @@ test('internal directives are scrubbed', async function () {
|
|
|
211
215
|
export default {
|
|
212
216
|
name: "TestQuery",
|
|
213
217
|
kind: "HoudiniQuery",
|
|
214
|
-
hash: "
|
|
218
|
+
hash: "d602ba63b61c244225db2524918578e52cc0c1b06a512b56064deb7d176f8e30",
|
|
215
219
|
|
|
216
220
|
raw: \`query TestQuery {
|
|
217
221
|
user {
|
|
@@ -222,7 +226,8 @@ test('internal directives are scrubbed', async function () {
|
|
|
222
226
|
|
|
223
227
|
fragment A on User {
|
|
224
228
|
firstName
|
|
225
|
-
}
|
|
229
|
+
}
|
|
230
|
+
\`,
|
|
226
231
|
|
|
227
232
|
rootType: "Query",
|
|
228
233
|
|
|
@@ -278,7 +283,7 @@ test('variables only used by internal directives are scrubbed', async function (
|
|
|
278
283
|
export default {
|
|
279
284
|
name: "TestQuery",
|
|
280
285
|
kind: "HoudiniQuery",
|
|
281
|
-
hash: "
|
|
286
|
+
hash: "d602ba63b61c244225db2524918578e52cc0c1b06a512b56064deb7d176f8e30",
|
|
282
287
|
|
|
283
288
|
raw: \`query TestQuery {
|
|
284
289
|
user {
|
|
@@ -289,7 +294,8 @@ test('variables only used by internal directives are scrubbed', async function (
|
|
|
289
294
|
|
|
290
295
|
fragment A on User {
|
|
291
296
|
firstName
|
|
292
|
-
}
|
|
297
|
+
}
|
|
298
|
+
\`,
|
|
293
299
|
|
|
294
300
|
rootType: "Query",
|
|
295
301
|
|
|
@@ -347,7 +353,7 @@ test('overlapping query and fragment selection', async function () {
|
|
|
347
353
|
export default {
|
|
348
354
|
name: "TestQuery",
|
|
349
355
|
kind: "HoudiniQuery",
|
|
350
|
-
hash: "
|
|
356
|
+
hash: "89ff86b7807db8c5395ab994977ca62e2af6a50b78add45f306d6730faa17cdf",
|
|
351
357
|
|
|
352
358
|
raw: \`query TestQuery {
|
|
353
359
|
user {
|
|
@@ -359,7 +365,8 @@ test('overlapping query and fragment selection', async function () {
|
|
|
359
365
|
|
|
360
366
|
fragment A on User {
|
|
361
367
|
firstName
|
|
362
|
-
}
|
|
368
|
+
}
|
|
369
|
+
\`,
|
|
363
370
|
|
|
364
371
|
rootType: "Query",
|
|
365
372
|
|
|
@@ -409,7 +416,7 @@ test('overlapping query and fragment nested selection', async function () {
|
|
|
409
416
|
export default {
|
|
410
417
|
name: "TestQuery",
|
|
411
418
|
kind: "HoudiniQuery",
|
|
412
|
-
hash: "
|
|
419
|
+
hash: "58b9fbe10de1dedb58d303b2e492b01192c69daceafd1060e433f40f9b4d6eb0",
|
|
413
420
|
|
|
414
421
|
raw: \`query TestQuery {
|
|
415
422
|
user {
|
|
@@ -426,7 +433,8 @@ test('overlapping query and fragment nested selection', async function () {
|
|
|
426
433
|
friends {
|
|
427
434
|
id
|
|
428
435
|
}
|
|
429
|
-
}
|
|
436
|
+
}
|
|
437
|
+
\`,
|
|
430
438
|
|
|
431
439
|
rootType: "Query",
|
|
432
440
|
|
|
@@ -504,7 +512,7 @@ test('selections with interfaces', async function () {
|
|
|
504
512
|
export default {
|
|
505
513
|
name: "Friends",
|
|
506
514
|
kind: "HoudiniQuery",
|
|
507
|
-
hash: "
|
|
515
|
+
hash: "359c4d6ceae8e5a5411fa160c2ffaf61e714d7c82a0f1816244f8a83291a2863",
|
|
508
516
|
|
|
509
517
|
raw: \`query Friends {
|
|
510
518
|
friends {
|
|
@@ -520,7 +528,8 @@ test('selections with interfaces', async function () {
|
|
|
520
528
|
}
|
|
521
529
|
__typename
|
|
522
530
|
}
|
|
523
|
-
}
|
|
531
|
+
}
|
|
532
|
+
\`,
|
|
524
533
|
|
|
525
534
|
rootType: "Query",
|
|
526
535
|
|
|
@@ -610,7 +619,7 @@ test('selections with unions', async function () {
|
|
|
610
619
|
export default {
|
|
611
620
|
name: "Friends",
|
|
612
621
|
kind: "HoudiniQuery",
|
|
613
|
-
hash: "
|
|
622
|
+
hash: "512c81f0e5ea88525b407c9978620c931d4e8bc41317d9bd6eeaf3338fe40c6c",
|
|
614
623
|
|
|
615
624
|
raw: \`query Friends {
|
|
616
625
|
entities {
|
|
@@ -626,7 +635,8 @@ test('selections with unions', async function () {
|
|
|
626
635
|
}
|
|
627
636
|
__typename
|
|
628
637
|
}
|
|
629
|
-
}
|
|
638
|
+
}
|
|
639
|
+
\`,
|
|
630
640
|
|
|
631
641
|
rootType: "Query",
|
|
632
642
|
|
|
@@ -721,7 +731,7 @@ describe('mutation artifacts', function () {
|
|
|
721
731
|
export default {
|
|
722
732
|
name: "B",
|
|
723
733
|
kind: "HoudiniMutation",
|
|
724
|
-
hash: "
|
|
734
|
+
hash: "38005b47351eb4e6e14e3c13a8d0d206dac09bf80d6fa3c103a060a3990edd37",
|
|
725
735
|
|
|
726
736
|
raw: \`mutation B {
|
|
727
737
|
addFriend {
|
|
@@ -730,7 +740,8 @@ describe('mutation artifacts', function () {
|
|
|
730
740
|
id
|
|
731
741
|
}
|
|
732
742
|
}
|
|
733
|
-
}
|
|
743
|
+
}
|
|
744
|
+
\`,
|
|
734
745
|
|
|
735
746
|
rootType: "Mutation",
|
|
736
747
|
|
|
@@ -802,7 +813,7 @@ describe('mutation artifacts', function () {
|
|
|
802
813
|
export default {
|
|
803
814
|
name: "A",
|
|
804
815
|
kind: "HoudiniMutation",
|
|
805
|
-
hash: "
|
|
816
|
+
hash: "7cc5c23ffd19603e2c7c727d1ac2726d4d87ee6b0470ced7d28c7f0ed88a05c2",
|
|
806
817
|
|
|
807
818
|
raw: \`mutation A {
|
|
808
819
|
addFriend {
|
|
@@ -816,7 +827,8 @@ describe('mutation artifacts', function () {
|
|
|
816
827
|
fragment All_Users_insert on User {
|
|
817
828
|
firstName
|
|
818
829
|
id
|
|
819
|
-
}
|
|
830
|
+
}
|
|
831
|
+
\`,
|
|
820
832
|
|
|
821
833
|
rootType: "Mutation",
|
|
822
834
|
|
|
@@ -894,7 +906,7 @@ describe('mutation artifacts', function () {
|
|
|
894
906
|
export default {
|
|
895
907
|
name: "A",
|
|
896
908
|
kind: "HoudiniMutation",
|
|
897
|
-
hash: "
|
|
909
|
+
hash: "2a821dc72c7f92a67ff9fcef569c4cadaf9852662035b32d015c4af67e57aca3",
|
|
898
910
|
|
|
899
911
|
raw: \`mutation A {
|
|
900
912
|
addFriend {
|
|
@@ -909,7 +921,8 @@ describe('mutation artifacts', function () {
|
|
|
909
921
|
firstName
|
|
910
922
|
id
|
|
911
923
|
id
|
|
912
|
-
}
|
|
924
|
+
}
|
|
925
|
+
\`,
|
|
913
926
|
|
|
914
927
|
rootType: "Mutation",
|
|
915
928
|
|
|
@@ -987,7 +1000,7 @@ describe('mutation artifacts', function () {
|
|
|
987
1000
|
export default {
|
|
988
1001
|
name: "A",
|
|
989
1002
|
kind: "HoudiniMutation",
|
|
990
|
-
hash: "
|
|
1003
|
+
hash: "9dc41329a7176f813b623958a68c2752d391151a4f3b1f9b8198f6c487e931a4",
|
|
991
1004
|
|
|
992
1005
|
raw: \`mutation A {
|
|
993
1006
|
addFriend {
|
|
@@ -1000,7 +1013,8 @@ describe('mutation artifacts', function () {
|
|
|
1000
1013
|
|
|
1001
1014
|
fragment All_Users_remove on User {
|
|
1002
1015
|
id
|
|
1003
|
-
}
|
|
1016
|
+
}
|
|
1017
|
+
\`,
|
|
1004
1018
|
|
|
1005
1019
|
rootType: "Mutation",
|
|
1006
1020
|
|
|
@@ -1070,13 +1084,14 @@ describe('mutation artifacts', function () {
|
|
|
1070
1084
|
export default {
|
|
1071
1085
|
name: "A",
|
|
1072
1086
|
kind: "HoudiniMutation",
|
|
1073
|
-
hash: "
|
|
1087
|
+
hash: "b9e1e926be309c06c868dc2472c082b6829f93ae55e000317a1066378590a85d",
|
|
1074
1088
|
|
|
1075
1089
|
raw: \`mutation A {
|
|
1076
1090
|
deleteUser(id: "1234") {
|
|
1077
1091
|
userID
|
|
1078
1092
|
}
|
|
1079
|
-
}
|
|
1093
|
+
}
|
|
1094
|
+
\`,
|
|
1080
1095
|
|
|
1081
1096
|
rootType: "Mutation",
|
|
1082
1097
|
|
|
@@ -1139,13 +1154,14 @@ describe('mutation artifacts', function () {
|
|
|
1139
1154
|
export default {
|
|
1140
1155
|
name: "A",
|
|
1141
1156
|
kind: "HoudiniMutation",
|
|
1142
|
-
hash: "
|
|
1157
|
+
hash: "b9e1e926be309c06c868dc2472c082b6829f93ae55e000317a1066378590a85d",
|
|
1143
1158
|
|
|
1144
1159
|
raw: \`mutation A {
|
|
1145
1160
|
deleteUser(id: "1234") {
|
|
1146
1161
|
userID
|
|
1147
1162
|
}
|
|
1148
|
-
}
|
|
1163
|
+
}
|
|
1164
|
+
\`,
|
|
1149
1165
|
|
|
1150
1166
|
rootType: "Mutation",
|
|
1151
1167
|
|
|
@@ -1216,7 +1232,7 @@ describe('mutation artifacts', function () {
|
|
|
1216
1232
|
export default {
|
|
1217
1233
|
name: "A",
|
|
1218
1234
|
kind: "HoudiniMutation",
|
|
1219
|
-
hash: "
|
|
1235
|
+
hash: "7cc5c23ffd19603e2c7c727d1ac2726d4d87ee6b0470ced7d28c7f0ed88a05c2",
|
|
1220
1236
|
|
|
1221
1237
|
raw: \`mutation A {
|
|
1222
1238
|
addFriend {
|
|
@@ -1230,7 +1246,8 @@ describe('mutation artifacts', function () {
|
|
|
1230
1246
|
fragment All_Users_insert on User {
|
|
1231
1247
|
firstName
|
|
1232
1248
|
id
|
|
1233
|
-
}
|
|
1249
|
+
}
|
|
1250
|
+
\`,
|
|
1234
1251
|
|
|
1235
1252
|
rootType: "Mutation",
|
|
1236
1253
|
|
|
@@ -1313,7 +1330,7 @@ describe('mutation artifacts', function () {
|
|
|
1313
1330
|
export default {
|
|
1314
1331
|
name: "A",
|
|
1315
1332
|
kind: "HoudiniMutation",
|
|
1316
|
-
hash: "
|
|
1333
|
+
hash: "7cc5c23ffd19603e2c7c727d1ac2726d4d87ee6b0470ced7d28c7f0ed88a05c2",
|
|
1317
1334
|
|
|
1318
1335
|
raw: \`mutation A {
|
|
1319
1336
|
addFriend {
|
|
@@ -1327,7 +1344,8 @@ describe('mutation artifacts', function () {
|
|
|
1327
1344
|
fragment All_Users_insert on User {
|
|
1328
1345
|
firstName
|
|
1329
1346
|
id
|
|
1330
|
-
}
|
|
1347
|
+
}
|
|
1348
|
+
\`,
|
|
1331
1349
|
|
|
1332
1350
|
rootType: "Mutation",
|
|
1333
1351
|
|
|
@@ -1410,7 +1428,7 @@ describe('mutation artifacts', function () {
|
|
|
1410
1428
|
export default {
|
|
1411
1429
|
name: "A",
|
|
1412
1430
|
kind: "HoudiniMutation",
|
|
1413
|
-
hash: "
|
|
1431
|
+
hash: "7cc5c23ffd19603e2c7c727d1ac2726d4d87ee6b0470ced7d28c7f0ed88a05c2",
|
|
1414
1432
|
|
|
1415
1433
|
raw: \`mutation A {
|
|
1416
1434
|
addFriend {
|
|
@@ -1424,7 +1442,8 @@ describe('mutation artifacts', function () {
|
|
|
1424
1442
|
fragment All_Users_insert on User {
|
|
1425
1443
|
firstName
|
|
1426
1444
|
id
|
|
1427
|
-
}
|
|
1445
|
+
}
|
|
1446
|
+
\`,
|
|
1428
1447
|
|
|
1429
1448
|
rootType: "Mutation",
|
|
1430
1449
|
|
|
@@ -1507,7 +1526,7 @@ describe('mutation artifacts', function () {
|
|
|
1507
1526
|
export default {
|
|
1508
1527
|
name: "A",
|
|
1509
1528
|
kind: "HoudiniMutation",
|
|
1510
|
-
hash: "
|
|
1529
|
+
hash: "7cc5c23ffd19603e2c7c727d1ac2726d4d87ee6b0470ced7d28c7f0ed88a05c2",
|
|
1511
1530
|
|
|
1512
1531
|
raw: \`mutation A {
|
|
1513
1532
|
addFriend {
|
|
@@ -1521,7 +1540,8 @@ describe('mutation artifacts', function () {
|
|
|
1521
1540
|
fragment All_Users_insert on User {
|
|
1522
1541
|
firstName
|
|
1523
1542
|
id
|
|
1524
|
-
}
|
|
1543
|
+
}
|
|
1544
|
+
\`,
|
|
1525
1545
|
|
|
1526
1546
|
rootType: "Mutation",
|
|
1527
1547
|
|
|
@@ -1605,7 +1625,7 @@ describe('mutation artifacts', function () {
|
|
|
1605
1625
|
export default {
|
|
1606
1626
|
name: "A",
|
|
1607
1627
|
kind: "HoudiniMutation",
|
|
1608
|
-
hash: "
|
|
1628
|
+
hash: "7cc5c23ffd19603e2c7c727d1ac2726d4d87ee6b0470ced7d28c7f0ed88a05c2",
|
|
1609
1629
|
|
|
1610
1630
|
raw: \`mutation A {
|
|
1611
1631
|
addFriend {
|
|
@@ -1619,7 +1639,8 @@ describe('mutation artifacts', function () {
|
|
|
1619
1639
|
fragment All_Users_insert on User {
|
|
1620
1640
|
firstName
|
|
1621
1641
|
id
|
|
1622
|
-
}
|
|
1642
|
+
}
|
|
1643
|
+
\`,
|
|
1623
1644
|
|
|
1624
1645
|
rootType: "Mutation",
|
|
1625
1646
|
|
|
@@ -1703,7 +1724,7 @@ describe('mutation artifacts', function () {
|
|
|
1703
1724
|
export default {
|
|
1704
1725
|
name: "A",
|
|
1705
1726
|
kind: "HoudiniMutation",
|
|
1706
|
-
hash: "
|
|
1727
|
+
hash: "7cc5c23ffd19603e2c7c727d1ac2726d4d87ee6b0470ced7d28c7f0ed88a05c2",
|
|
1707
1728
|
|
|
1708
1729
|
raw: \`mutation A {
|
|
1709
1730
|
addFriend {
|
|
@@ -1717,7 +1738,8 @@ describe('mutation artifacts', function () {
|
|
|
1717
1738
|
fragment All_Users_insert on User {
|
|
1718
1739
|
firstName
|
|
1719
1740
|
id
|
|
1720
|
-
}
|
|
1741
|
+
}
|
|
1742
|
+
\`,
|
|
1721
1743
|
|
|
1722
1744
|
rootType: "Mutation",
|
|
1723
1745
|
|
|
@@ -1801,7 +1823,7 @@ describe('mutation artifacts', function () {
|
|
|
1801
1823
|
export default {
|
|
1802
1824
|
name: "A",
|
|
1803
1825
|
kind: "HoudiniMutation",
|
|
1804
|
-
hash: "
|
|
1826
|
+
hash: "7cc5c23ffd19603e2c7c727d1ac2726d4d87ee6b0470ced7d28c7f0ed88a05c2",
|
|
1805
1827
|
|
|
1806
1828
|
raw: \`mutation A {
|
|
1807
1829
|
addFriend {
|
|
@@ -1815,7 +1837,8 @@ describe('mutation artifacts', function () {
|
|
|
1815
1837
|
fragment All_Users_insert on User {
|
|
1816
1838
|
firstName
|
|
1817
1839
|
id
|
|
1818
|
-
}
|
|
1840
|
+
}
|
|
1841
|
+
\`,
|
|
1819
1842
|
|
|
1820
1843
|
rootType: "Mutation",
|
|
1821
1844
|
|
|
@@ -1899,7 +1922,7 @@ describe('mutation artifacts', function () {
|
|
|
1899
1922
|
export default {
|
|
1900
1923
|
name: "A",
|
|
1901
1924
|
kind: "HoudiniMutation",
|
|
1902
|
-
hash: "
|
|
1925
|
+
hash: "7cc5c23ffd19603e2c7c727d1ac2726d4d87ee6b0470ced7d28c7f0ed88a05c2",
|
|
1903
1926
|
|
|
1904
1927
|
raw: \`mutation A {
|
|
1905
1928
|
addFriend {
|
|
@@ -1913,7 +1936,8 @@ describe('mutation artifacts', function () {
|
|
|
1913
1936
|
fragment All_Users_insert on User {
|
|
1914
1937
|
firstName
|
|
1915
1938
|
id
|
|
1916
|
-
}
|
|
1939
|
+
}
|
|
1940
|
+
\`,
|
|
1917
1941
|
|
|
1918
1942
|
rootType: "Mutation",
|
|
1919
1943
|
|
|
@@ -2002,14 +2026,15 @@ describe('mutation artifacts', function () {
|
|
|
2002
2026
|
export default {
|
|
2003
2027
|
name: "TestQuery",
|
|
2004
2028
|
kind: "HoudiniQuery",
|
|
2005
|
-
hash: "
|
|
2029
|
+
hash: "d773bead4120baa620dc05347fba277faaa5bb555e10943507a393eaa3399c52",
|
|
2006
2030
|
|
|
2007
2031
|
raw: \`query TestQuery($value: String!) {
|
|
2008
2032
|
users(stringValue: $value, boolValue: true, floatValue: 1.2, intValue: 1) {
|
|
2009
2033
|
firstName
|
|
2010
2034
|
id
|
|
2011
2035
|
}
|
|
2012
|
-
}
|
|
2036
|
+
}
|
|
2037
|
+
\`,
|
|
2013
2038
|
|
|
2014
2039
|
rootType: "Query",
|
|
2015
2040
|
|
|
@@ -2113,7 +2138,7 @@ describe('mutation artifacts', function () {
|
|
|
2113
2138
|
export default {
|
|
2114
2139
|
name: "A",
|
|
2115
2140
|
kind: "HoudiniMutation",
|
|
2116
|
-
hash: "
|
|
2141
|
+
hash: "7cc5c23ffd19603e2c7c727d1ac2726d4d87ee6b0470ced7d28c7f0ed88a05c2",
|
|
2117
2142
|
|
|
2118
2143
|
raw: \`mutation A {
|
|
2119
2144
|
addFriend {
|
|
@@ -2127,7 +2152,8 @@ describe('mutation artifacts', function () {
|
|
|
2127
2152
|
fragment All_Users_insert on User {
|
|
2128
2153
|
firstName
|
|
2129
2154
|
id
|
|
2130
|
-
}
|
|
2155
|
+
}
|
|
2156
|
+
\`,
|
|
2131
2157
|
|
|
2132
2158
|
rootType: "Mutation",
|
|
2133
2159
|
|
|
@@ -2211,14 +2237,15 @@ describe('mutation artifacts', function () {
|
|
|
2211
2237
|
export default {
|
|
2212
2238
|
name: "TestQuery",
|
|
2213
2239
|
kind: "HoudiniQuery",
|
|
2214
|
-
hash: "
|
|
2240
|
+
hash: "2997353b3d1f04e02b9d211bb4f4069b63f8536b7f1eb686fc74fd8b3dab8dbd",
|
|
2215
2241
|
|
|
2216
2242
|
raw: \`query TestQuery {
|
|
2217
2243
|
users(stringValue: "foo") {
|
|
2218
2244
|
firstName
|
|
2219
2245
|
id
|
|
2220
2246
|
}
|
|
2221
|
-
}
|
|
2247
|
+
}
|
|
2248
|
+
\`,
|
|
2222
2249
|
|
|
2223
2250
|
rootType: "Query",
|
|
2224
2251
|
|
|
@@ -2303,7 +2330,7 @@ describe('mutation artifacts', function () {
|
|
|
2303
2330
|
export default {
|
|
2304
2331
|
name: "TestQuery",
|
|
2305
2332
|
kind: "HoudiniQuery",
|
|
2306
|
-
hash: "
|
|
2333
|
+
hash: "ae03169e8d96702d39c54183ece747c31f4b5d1e3abf54cf3fc0706abfd597b9",
|
|
2307
2334
|
|
|
2308
2335
|
refetch: {
|
|
2309
2336
|
update: "append",
|
|
@@ -2337,7 +2364,8 @@ describe('mutation artifacts', function () {
|
|
|
2337
2364
|
endCursor
|
|
2338
2365
|
}
|
|
2339
2366
|
}
|
|
2340
|
-
}
|
|
2367
|
+
}
|
|
2368
|
+
\`,
|
|
2341
2369
|
|
|
2342
2370
|
rootType: "Query",
|
|
2343
2371
|
|
|
@@ -2482,14 +2510,15 @@ describe('mutation artifacts', function () {
|
|
|
2482
2510
|
export default {
|
|
2483
2511
|
name: "TestQuery",
|
|
2484
2512
|
kind: "HoudiniQuery",
|
|
2485
|
-
hash: "
|
|
2513
|
+
hash: "d773bead4120baa620dc05347fba277faaa5bb555e10943507a393eaa3399c52",
|
|
2486
2514
|
|
|
2487
2515
|
raw: \`query TestQuery($value: String!) {
|
|
2488
2516
|
users(stringValue: $value, boolValue: true, floatValue: 1.2, intValue: 1) {
|
|
2489
2517
|
firstName
|
|
2490
2518
|
id
|
|
2491
2519
|
}
|
|
2492
|
-
}
|
|
2520
|
+
}
|
|
2521
|
+
\`,
|
|
2493
2522
|
|
|
2494
2523
|
rootType: "Query",
|
|
2495
2524
|
|
|
@@ -2591,14 +2620,15 @@ describe('mutation artifacts', function () {
|
|
|
2591
2620
|
export default {
|
|
2592
2621
|
name: "TestQuery",
|
|
2593
2622
|
kind: "HoudiniQuery",
|
|
2594
|
-
hash: "
|
|
2623
|
+
hash: "d773bead4120baa620dc05347fba277faaa5bb555e10943507a393eaa3399c52",
|
|
2595
2624
|
|
|
2596
2625
|
raw: \`query TestQuery($value: String!) {
|
|
2597
2626
|
users(stringValue: $value, boolValue: true, floatValue: 1.2, intValue: 1) {
|
|
2598
2627
|
firstName
|
|
2599
2628
|
id
|
|
2600
2629
|
}
|
|
2601
|
-
}
|
|
2630
|
+
}
|
|
2631
|
+
\`,
|
|
2602
2632
|
|
|
2603
2633
|
rootType: "Query",
|
|
2604
2634
|
|
|
@@ -2707,13 +2737,14 @@ test('custom scalar shows up in artifact', async function () {
|
|
|
2707
2737
|
export default {
|
|
2708
2738
|
name: "TestQuery",
|
|
2709
2739
|
kind: "HoudiniQuery",
|
|
2710
|
-
hash: "
|
|
2740
|
+
hash: "b8314df1f7d924f76e6dfe6e7e3c8efd593db931c67c892311e97a9ec1d429b4",
|
|
2711
2741
|
|
|
2712
2742
|
raw: \`query TestQuery {
|
|
2713
2743
|
allItems {
|
|
2714
2744
|
createdAt
|
|
2715
2745
|
}
|
|
2716
|
-
}
|
|
2746
|
+
}
|
|
2747
|
+
\`,
|
|
2717
2748
|
|
|
2718
2749
|
rootType: "Query",
|
|
2719
2750
|
|
|
@@ -2808,13 +2839,14 @@ test('operation inputs', async function () {
|
|
|
2808
2839
|
export default {
|
|
2809
2840
|
name: "TestQuery",
|
|
2810
2841
|
kind: "HoudiniQuery",
|
|
2811
|
-
hash: "
|
|
2842
|
+
hash: "f39d9c24c97c9c3cdcd916272e7ffb9d79cb4ad08ec294c829d647d4238c7e6b",
|
|
2812
2843
|
|
|
2813
2844
|
raw: \`query TestQuery($id: ID, $filter: UserFilter, $filterList: [UserFilter!], $enumArg: MyEnum) {
|
|
2814
2845
|
user(id: $id, filter: $filter, filterList: $filterList, enumArg: $enumArg) {
|
|
2815
2846
|
id
|
|
2816
2847
|
}
|
|
2817
|
-
}
|
|
2848
|
+
}
|
|
2849
|
+
\`,
|
|
2818
2850
|
|
|
2819
2851
|
rootType: "Query",
|
|
2820
2852
|
|
|
@@ -2899,7 +2931,7 @@ describe('subscription artifacts', function () {
|
|
|
2899
2931
|
export default {
|
|
2900
2932
|
name: "B",
|
|
2901
2933
|
kind: "HoudiniSubscription",
|
|
2902
|
-
hash: "
|
|
2934
|
+
hash: "755fb65bebc83835db68921b7e193809246fb6f9ee2e37cc66d7314b91a501e7",
|
|
2903
2935
|
|
|
2904
2936
|
raw: \`subscription B {
|
|
2905
2937
|
newUser {
|
|
@@ -2908,7 +2940,8 @@ describe('subscription artifacts', function () {
|
|
|
2908
2940
|
id
|
|
2909
2941
|
}
|
|
2910
2942
|
}
|
|
2911
|
-
}
|
|
2943
|
+
}
|
|
2944
|
+
\`,
|
|
2912
2945
|
|
|
2913
2946
|
rootType: "Subscription",
|
|
2914
2947
|
|
|
@@ -30,7 +30,7 @@ test('pagination arguments stripped from key', async function () {
|
|
|
30
30
|
export default {
|
|
31
31
|
name: "PaginatedFragment",
|
|
32
32
|
kind: "HoudiniFragment",
|
|
33
|
-
hash: "
|
|
33
|
+
hash: "d655188329bfa82826d0e09c9b56fb90c276ed5b3b155784c3358db3cac30c87",
|
|
34
34
|
|
|
35
35
|
refetch: {
|
|
36
36
|
update: "append",
|
|
@@ -63,7 +63,8 @@ test('pagination arguments stripped from key', async function () {
|
|
|
63
63
|
endCursor
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
|
-
}
|
|
66
|
+
}
|
|
67
|
+
\`,
|
|
67
68
|
|
|
68
69
|
rootType: "User",
|
|
69
70
|
|
|
@@ -160,7 +161,7 @@ test('offset based pagination marks appropriate field', async function () {
|
|
|
160
161
|
export default {
|
|
161
162
|
name: "PaginatedFragment",
|
|
162
163
|
kind: "HoudiniFragment",
|
|
163
|
-
hash: "
|
|
164
|
+
hash: "61656f834b4f2afccdd42328b499f288fc9776befbef14154133565e0ac7e8b6",
|
|
164
165
|
|
|
165
166
|
refetch: {
|
|
166
167
|
update: "append",
|
|
@@ -177,7 +178,8 @@ test('offset based pagination marks appropriate field', async function () {
|
|
|
177
178
|
friendsByOffset(limit: $limit, filter: "hello", offset: $offset) {
|
|
178
179
|
id
|
|
179
180
|
}
|
|
180
|
-
}
|
|
181
|
+
}
|
|
182
|
+
\`,
|
|
181
183
|
|
|
182
184
|
rootType: "User",
|
|
183
185
|
|
|
@@ -233,7 +235,7 @@ test('cursor as scalar gets the right pagination query argument types', async fu
|
|
|
233
235
|
export default {
|
|
234
236
|
name: "ScalarPagination",
|
|
235
237
|
kind: "HoudiniQuery",
|
|
236
|
-
hash: "
|
|
238
|
+
hash: "09863f3b665ef14816cc6b9cc965f12bb68ea569345d3f346415ba7a8b8af71c",
|
|
237
239
|
|
|
238
240
|
refetch: {
|
|
239
241
|
update: "append",
|
|
@@ -276,7 +278,8 @@ test('cursor as scalar gets the right pagination query argument types', async fu
|
|
|
276
278
|
}
|
|
277
279
|
id
|
|
278
280
|
}
|
|
279
|
-
}
|
|
281
|
+
}
|
|
282
|
+
\`,
|
|
280
283
|
|
|
281
284
|
rootType: "Query",
|
|
282
285
|
|
|
@@ -447,7 +450,7 @@ test("sibling aliases don't get marked", async function () {
|
|
|
447
450
|
export default {
|
|
448
451
|
name: "PaginatedFragment",
|
|
449
452
|
kind: "HoudiniFragment",
|
|
450
|
-
hash: "
|
|
453
|
+
hash: "1a2d87a1d79e0241ab3ebda1cd43296a631d99973bb06e4fc66becd42c4a67be",
|
|
451
454
|
|
|
452
455
|
refetch: {
|
|
453
456
|
update: "append",
|
|
@@ -501,7 +504,8 @@ test("sibling aliases don't get marked", async function () {
|
|
|
501
504
|
}
|
|
502
505
|
}
|
|
503
506
|
}
|
|
504
|
-
}
|
|
507
|
+
}
|
|
508
|
+
\`,
|
|
505
509
|
|
|
506
510
|
rootType: "User",
|
|
507
511
|
|