@graphql-tools/delegate 7.0.4 → 7.0.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/es5/index.cjs.js +2 -1
- package/es5/index.cjs.js.map +1 -1
- package/es5/index.esm.js +2 -1
- package/es5/index.esm.js.map +1 -1
- package/es5/package.json +1 -1
- package/es5/types.d.ts +6 -3
- package/index.cjs.js +2 -1
- package/index.cjs.js.map +1 -1
- package/index.esm.js +2 -1
- package/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/types.d.ts +6 -3
package/es5/index.cjs.js
CHANGED
|
@@ -570,7 +570,8 @@ function mergeFields(mergedTypeInfo, typeName, object, fieldNodes, sourceSubsche
|
|
|
570
570
|
var containsPromises = false;
|
|
571
571
|
var resultMap = new Map();
|
|
572
572
|
delegationMap.forEach(function (selectionSet, s) {
|
|
573
|
-
var
|
|
573
|
+
var resolver = mergedTypeInfo.resolvers.get(s);
|
|
574
|
+
var maybePromise = resolver(object, context, info, s, selectionSet);
|
|
574
575
|
resultMap.set(maybePromise, selectionSet);
|
|
575
576
|
if (isPromise(maybePromise)) {
|
|
576
577
|
containsPromises = true;
|