@graphql-tools/delegate 12.3.4 → 12.3.5-rc-43f5f54eb999deb07799bcd8111ce37ae52ca10a
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/CHANGELOG.md +7 -0
- package/dist/index.cjs +6 -0
- package/dist/index.js +6 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @graphql-tools/delegate
|
|
2
2
|
|
|
3
|
+
## 12.3.5-rc-43f5f54eb999deb07799bcd8111ce37ae52ca10a
|
|
4
|
+
### Patch Changes
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
- [#2751](https://github.com/graphql-hive/gateway/pull/2751) [`b180423`](https://github.com/graphql-hive/gateway/commit/b1804230911a8cd047ee0953304469ff4cb6b131) Thanks [@aarne](https://github.com/aarne)! - Do not add a `null` item to a streamed list when the subgraph ends the stream with `{ "hasNext": false }`
|
|
9
|
+
|
|
3
10
|
## 12.3.4
|
|
4
11
|
### Patch Changes
|
|
5
12
|
|
package/dist/index.cjs
CHANGED
|
@@ -4414,6 +4414,12 @@ async function* streamListIterable(executorResult, transformer) {
|
|
|
4414
4414
|
}
|
|
4415
4415
|
continue;
|
|
4416
4416
|
}
|
|
4417
|
+
if (result.data === void 0 && !result.errors?.length) {
|
|
4418
|
+
if (result.hasNext === false) {
|
|
4419
|
+
return;
|
|
4420
|
+
}
|
|
4421
|
+
continue;
|
|
4422
|
+
}
|
|
4417
4423
|
const transformedResult = await transformer.transformResult(result);
|
|
4418
4424
|
if (Array.isArray(transformedResult)) {
|
|
4419
4425
|
for (let i = pushedCount; i < transformedResult.length; i++) {
|
package/dist/index.js
CHANGED
|
@@ -4414,6 +4414,12 @@ async function* streamListIterable(executorResult, transformer) {
|
|
|
4414
4414
|
}
|
|
4415
4415
|
continue;
|
|
4416
4416
|
}
|
|
4417
|
+
if (result.data === void 0 && !result.errors?.length) {
|
|
4418
|
+
if (result.hasNext === false) {
|
|
4419
|
+
return;
|
|
4420
|
+
}
|
|
4421
|
+
continue;
|
|
4422
|
+
}
|
|
4417
4423
|
const transformedResult = await transformer.transformResult(result);
|
|
4418
4424
|
if (Array.isArray(transformedResult)) {
|
|
4419
4425
|
for (let i = pushedCount; i < transformedResult.length; i++) {
|
package/package.json
CHANGED