@graphql-tools/wrap 9.2.14 → 9.2.15-alpha-20221116170336-30f40f1d
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.
|
@@ -47,7 +47,8 @@ class MapLeafValues {
|
|
|
47
47
|
return transformedRequest;
|
|
48
48
|
}
|
|
49
49
|
transformResult(originalResult, delegationContext, transformationContext) {
|
|
50
|
-
|
|
50
|
+
const schema = 'schema' in delegationContext.subschema ? delegationContext.subschema.schema : delegationContext.subschema;
|
|
51
|
+
return (0, utils_1.visitResult)(originalResult, transformationContext.transformedRequest, schema, this.resultVisitorMap);
|
|
51
52
|
}
|
|
52
53
|
transformOperations(operations, variableValues) {
|
|
53
54
|
return operations.map((operation) => {
|
|
@@ -45,7 +45,8 @@ export default class MapLeafValues {
|
|
|
45
45
|
return transformedRequest;
|
|
46
46
|
}
|
|
47
47
|
transformResult(originalResult, delegationContext, transformationContext) {
|
|
48
|
-
|
|
48
|
+
const schema = 'schema' in delegationContext.subschema ? delegationContext.subschema.schema : delegationContext.subschema;
|
|
49
|
+
return visitResult(originalResult, transformationContext.transformedRequest, schema, this.resultVisitorMap);
|
|
49
50
|
}
|
|
50
51
|
transformOperations(operations, variableValues) {
|
|
51
52
|
return operations.map((operation) => {
|