Nodejs MongoDB Limit

In MongoDB, The limit() function is used to specify the maximum number of results to be returned.

Code :