@azure/cosmos 3.16.1 → 3.16.2
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 +5 -0
- package/dist/index.js +6 -2
- package/dist/index.js.map +1 -1
- package/dist-esm/src/common/constants.js +1 -1
- package/dist-esm/src/common/constants.js.map +1 -1
- package/dist-esm/src/queryExecutionContext/EndpointComponent/GroupByEndpointComponent.d.ts.map +1 -1
- package/dist-esm/src/queryExecutionContext/EndpointComponent/GroupByEndpointComponent.js +5 -1
- package/dist-esm/src/queryExecutionContext/EndpointComponent/GroupByEndpointComponent.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -176,7 +176,7 @@ const Constants = {
|
|
|
176
176
|
ThrottleRetryWaitTimeInMs: "x-ms-throttle-retry-wait-time-ms",
|
|
177
177
|
CurrentVersion: "2020-07-15",
|
|
178
178
|
SDKName: "azure-cosmos-js",
|
|
179
|
-
SDKVersion: "3.16.
|
|
179
|
+
SDKVersion: "3.16.2",
|
|
180
180
|
Quota: {
|
|
181
181
|
CollectionSize: "collectionSize",
|
|
182
182
|
},
|
|
@@ -3776,7 +3776,11 @@ class GroupByEndpointComponent {
|
|
|
3776
3776
|
if (aggregators) {
|
|
3777
3777
|
// Iterator over all results in the payload
|
|
3778
3778
|
Object.keys(payload).map((key) => {
|
|
3779
|
-
|
|
3779
|
+
// in case the value of a group is null make sure we create a dummy payload with item2==null
|
|
3780
|
+
const effectiveGroupByValue = payload[key]
|
|
3781
|
+
? payload[key]
|
|
3782
|
+
: new Map().set("item2", null);
|
|
3783
|
+
const aggregateResult = extractAggregateResult(effectiveGroupByValue);
|
|
3780
3784
|
aggregators.get(key).aggregate(aggregateResult);
|
|
3781
3785
|
});
|
|
3782
3786
|
}
|