Limit no of results in scan method in NodeJs Client


#1

I am using NodeJs client to interact with Aerospike server. Can anyone please suggest how can I limit of number of results in its scan method.

Something like Aerospike.scan(namespace, set).limit(10).sort({key: -1});