@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/index.esm.js
CHANGED
|
@@ -560,7 +560,8 @@ function mergeFields(mergedTypeInfo, typeName, object, fieldNodes, sourceSubsche
|
|
|
560
560
|
let containsPromises = false;
|
|
561
561
|
const resultMap = new Map();
|
|
562
562
|
delegationMap.forEach((selectionSet, s) => {
|
|
563
|
-
const
|
|
563
|
+
const resolver = mergedTypeInfo.resolvers.get(s);
|
|
564
|
+
const maybePromise = resolver(object, context, info, s, selectionSet);
|
|
564
565
|
resultMap.set(maybePromise, selectionSet);
|
|
565
566
|
if (isPromise(maybePromise)) {
|
|
566
567
|
containsPromises = true;
|