@graphql-tools/delegate 9.0.10 → 9.0.11-alpha-20221031181646-cd48ed2f
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/cjs/mergeFields.js +2 -2
- package/esm/mergeFields.js +2 -2
- package/package.json +5 -5
package/cjs/mergeFields.js
CHANGED
|
@@ -55,9 +55,9 @@ async function executeDelegationStage(mergedTypeInfo, delegationMap, object, con
|
|
|
55
55
|
source = error;
|
|
56
56
|
}
|
|
57
57
|
if (source instanceof Error || source == null) {
|
|
58
|
-
const
|
|
58
|
+
const { fields } = (0, utils_1.collectFields)(schema, EMPTY_OBJECT, EMPTY_OBJECT, type, selectionSet);
|
|
59
59
|
const nullResult = {};
|
|
60
|
-
for (const [responseKey, fieldNodes] of
|
|
60
|
+
for (const [responseKey, fieldNodes] of fields) {
|
|
61
61
|
const combinedPath = [...path, responseKey];
|
|
62
62
|
if (source instanceof graphql_1.GraphQLError) {
|
|
63
63
|
nullResult[responseKey] = (0, utils_1.relocatedError)(source, combinedPath);
|
package/esm/mergeFields.js
CHANGED
|
@@ -47,9 +47,9 @@ async function executeDelegationStage(mergedTypeInfo, delegationMap, object, con
|
|
|
47
47
|
source = error;
|
|
48
48
|
}
|
|
49
49
|
if (source instanceof Error || source == null) {
|
|
50
|
-
const
|
|
50
|
+
const { fields } = collectFields(schema, EMPTY_OBJECT, EMPTY_OBJECT, type, selectionSet);
|
|
51
51
|
const nullResult = {};
|
|
52
|
-
for (const [responseKey, fieldNodes] of
|
|
52
|
+
for (const [responseKey, fieldNodes] of fields) {
|
|
53
53
|
const combinedPath = [...path, responseKey];
|
|
54
54
|
if (source instanceof GraphQLError) {
|
|
55
55
|
nullResult[responseKey] = relocatedError(source, combinedPath);
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-tools/delegate",
|
|
3
|
-
"version": "9.0.
|
|
3
|
+
"version": "9.0.11-alpha-20221031181646-cd48ed2f",
|
|
4
4
|
"description": "A set of utils for faster development of GraphQL tools",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"peerDependencies": {
|
|
7
7
|
"graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@graphql-tools/batch-execute": "8.5.
|
|
11
|
-
"@graphql-tools/executor": "0.0.
|
|
12
|
-
"@graphql-tools/schema": "9.0.
|
|
13
|
-
"@graphql-tools/utils": "
|
|
10
|
+
"@graphql-tools/batch-execute": "8.5.9-alpha-20221031181646-cd48ed2f",
|
|
11
|
+
"@graphql-tools/executor": "0.0.3-alpha-20221031181646-cd48ed2f",
|
|
12
|
+
"@graphql-tools/schema": "9.0.7-alpha-20221031181646-cd48ed2f",
|
|
13
|
+
"@graphql-tools/utils": "9.0.0-alpha-20221031181646-cd48ed2f",
|
|
14
14
|
"dataloader": "2.1.0",
|
|
15
15
|
"tslib": "~2.4.0",
|
|
16
16
|
"value-or-promise": "1.0.11"
|