@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.esm.js
CHANGED
|
@@ -564,7 +564,8 @@ function mergeFields(mergedTypeInfo, typeName, object, fieldNodes, sourceSubsche
|
|
|
564
564
|
var containsPromises = false;
|
|
565
565
|
var resultMap = new Map();
|
|
566
566
|
delegationMap.forEach(function (selectionSet, s) {
|
|
567
|
-
var
|
|
567
|
+
var resolver = mergedTypeInfo.resolvers.get(s);
|
|
568
|
+
var maybePromise = resolver(object, context, info, s, selectionSet);
|
|
568
569
|
resultMap.set(maybePromise, selectionSet);
|
|
569
570
|
if (isPromise(maybePromise)) {
|
|
570
571
|
containsPromises = true;
|