From 4d95c8df66c90fb1e96adfa1bafef689a6888d3c Mon Sep 17 00:00:00 2001 From: Peter Couture Date: Thu, 12 Jan 2023 02:25:34 +0800 Subject: [PATCH] Adding usingIndex to scan --- lib/scan.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/scan.js b/lib/scan.js index ad59bc1..ffc4aa1 100644 --- a/lib/scan.js +++ b/lib/scan.js @@ -162,6 +162,12 @@ Scan.prototype.exec = function(callback) { return utils.paginatedRequest(self, runScan, callback); }; +Scan.prototype.usingIndex = function (name) { + this.request.IndexName = name; + + return this; +}; + Scan.prototype.loadAll = function () { this.options.loadAll = true;