The limit () Method In MongoDB, the �limit ()� method is used to limit the records or documents present inside a collection. It accepts only one argument which is of number type. Depending on the value of the number, we can limit the number of documents to be displayed. This argument is an optional field inside the �limit ()� method, and when not specified then by default, it will display all the documents from the collection. The following is the basic syntax for �limit ()� method in MongoDB. >db.COLLECTION_NAME.find().limit(NUMBER)
Sir Abdul Majid
2021-06-02 16:01:09
plz see attached file Click for download attachement