Open bluerid opened 4 years ago
@baseprime Can I get a response here?
@bluerid first you need a to scan your db with limit. like so:
Account.scan().limit(10).exec(callback)
if the scan returns LastEvaluatedKey
object that means you have more data you DB, which you can then use to you next scan like so
Account.scan().limit(10).startKey(LastEvaluatedKey).exec(callback)
I see this can be used to limit the display of results.
Account.scan().limit(10).exec(printResults);
But how do I tell the scan method to start from a particular record?