electrodb 3.4.4 → 3.4.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/package.json +1 -1
- package/src/entity.js +9 -3
package/package.json
CHANGED
package/src/entity.js
CHANGED
|
@@ -2012,7 +2012,10 @@ class Entity {
|
|
|
2012
2012
|
);
|
|
2013
2013
|
break;
|
|
2014
2014
|
case MethodTypes.scan:
|
|
2015
|
-
params = this._makeScanParam(
|
|
2015
|
+
params = this._makeScanParam(
|
|
2016
|
+
filter[ExpressionTypes.FilterExpression],
|
|
2017
|
+
config,
|
|
2018
|
+
);
|
|
2016
2019
|
break;
|
|
2017
2020
|
/* istanbul ignore next */
|
|
2018
2021
|
default:
|
|
@@ -2228,7 +2231,7 @@ class Entity {
|
|
|
2228
2231
|
}
|
|
2229
2232
|
|
|
2230
2233
|
/* istanbul ignore next */
|
|
2231
|
-
_makeScanParam(filter = {}) {
|
|
2234
|
+
_makeScanParam(filter = {}, options = {}) {
|
|
2232
2235
|
let indexBase = TableIndex;
|
|
2233
2236
|
let hasSortKey = this.model.lookup.indexHasSortKeys[indexBase];
|
|
2234
2237
|
let accessPattern =
|
|
@@ -2291,7 +2294,10 @@ class Entity {
|
|
|
2291
2294
|
params.FilterExpression = filterExpressions.join(" AND ");
|
|
2292
2295
|
}
|
|
2293
2296
|
|
|
2294
|
-
return
|
|
2297
|
+
return this._applyProjectionExpressions({
|
|
2298
|
+
parameters: params,
|
|
2299
|
+
config: options,
|
|
2300
|
+
});
|
|
2295
2301
|
}
|
|
2296
2302
|
|
|
2297
2303
|
_makeSimpleIndexParams(partition, sort) {
|