@graphql-tools/delegate 7.0.9-alpha-08ab8c06.0 → 7.0.9
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/es5/index.cjs.js +2 -3
- package/es5/index.cjs.js.map +1 -1
- package/es5/index.esm.js +2 -3
- package/es5/index.esm.js.map +1 -1
- package/es5/package.json +5 -5
- package/es5/types.d.ts +2 -0
- package/index.cjs.js +2 -3
- package/index.cjs.js.map +1 -1
- package/index.esm.js +2 -3
- package/index.esm.js.map +1 -1
- package/package.json +5 -5
- package/types.d.ts +2 -0
package/es5/index.cjs.js
CHANGED
|
@@ -528,12 +528,11 @@ var buildDelegationPlan = memoize3(function (mergedTypeInfo, fieldNodes, proxiab
|
|
|
528
528
|
return;
|
|
529
529
|
}
|
|
530
530
|
nonUniqueSubschemas = nonUniqueSubschemas.filter(function (s) { return proxiableSubschemas.includes(s); });
|
|
531
|
-
if (nonUniqueSubschemas
|
|
531
|
+
if (!nonUniqueSubschemas.length) {
|
|
532
532
|
unproxiableFieldNodes.push(fieldNode);
|
|
533
533
|
return;
|
|
534
534
|
}
|
|
535
|
-
var
|
|
536
|
-
var existingSubschema = nonUniqueSubschemas.find(function (s) { return subschemas.includes(s); });
|
|
535
|
+
var existingSubschema = nonUniqueSubschemas.find(function (s) { return delegationMap.has(s); });
|
|
537
536
|
if (existingSubschema != null) {
|
|
538
537
|
delegationMap.get(existingSubschema).push(fieldNode);
|
|
539
538
|
}
|