@graphql-tools/batch-execute 8.5.19 → 8.5.20-rc-20230423085904-e0e648ef
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/cjs/splitResult.js +1 -1
- package/esm/splitResult.js +2 -2
- package/package.json +1 -1
package/cjs/splitResult.js
CHANGED
|
@@ -39,7 +39,7 @@ function splitResult({ data, errors }, numResults) {
|
|
|
39
39
|
else {
|
|
40
40
|
splitResults.forEach(result => {
|
|
41
41
|
const resultErrors = (result.errors = (result.errors || []));
|
|
42
|
-
resultErrors.push(
|
|
42
|
+
resultErrors.push(error);
|
|
43
43
|
});
|
|
44
44
|
}
|
|
45
45
|
}
|
package/esm/splitResult.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// adapted from https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby-source-graphql/src/batching/merge-queries.js
|
|
2
|
-
import {
|
|
2
|
+
import { relocatedError } from '@graphql-tools/utils';
|
|
3
3
|
import { parseKey } from './prefix.js';
|
|
4
4
|
/**
|
|
5
5
|
* Split and transform result of the query produced by the `merge` function
|
|
@@ -36,7 +36,7 @@ export function splitResult({ data, errors }, numResults) {
|
|
|
36
36
|
else {
|
|
37
37
|
splitResults.forEach(result => {
|
|
38
38
|
const resultErrors = (result.errors = (result.errors || []));
|
|
39
|
-
resultErrors.push(
|
|
39
|
+
resultErrors.push(error);
|
|
40
40
|
});
|
|
41
41
|
}
|
|
42
42
|
}
|
package/package.json
CHANGED