adspace


How do you limit the number of result returned?

Answer Posted / Chandra Kant Pandey

In MongoDB, you can limit the number of results returned by using the 'limit()' method or by specifying a value for the '$limit' field in the query. For example: nndb.collection.find({ condition }).limit(n)

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is the command syntax for inserting a document?

63


How to define array in mongoose schema?

79


How did mongodb get its name?

60