Closed stevenao closed 6 years ago
+1
Let's reopen this if there is some more activity here. Might not take too much effort to do a patch if the functionality is similar to the .usingIndex()
method for .query()
.
@dangerginger It'd be nice to have this. Currently we have dirty checks whether to use query or scan, leading to some complexity overall.
the feature was added a few months ago in dynamodb. Can you add it to the scan module? currently, i manually add it to the scan prototype.
require('dynogels/lib/scan').prototype.usingIndex = function (name) { this.request.IndexName = name; return this; };