MongoDB Queries (Part 4) - Filter/Search Documents
60.3 هزار بار بازدید -
8 سال پیش
-
In this tutorial, you will
In this tutorial, you will learn how to can apply filters on Mongo DB documents, in order to retrieve the data that you are interested in. We shall check out the equality filter, available operators, compound filters and sorting.
MongoDB provides the db.collection.find() method to read and filter documents in a given collection. Queries can return all documents in a collection or only the documents that match a specified filter or criteria. You can specify the filter or criteria in a document and pass as a parameter to the find() method.
MongoDB also provides the sort() function, if you need to order documents from a query.
For more software development tutorials, ideas and tips, visit http://www.romaniancoder.com/blog/
MongoDB provides the db.collection.find() method to read and filter documents in a given collection. Queries can return all documents in a collection or only the documents that match a specified filter or criteria. You can specify the filter or criteria in a document and pass as a parameter to the find() method.
MongoDB also provides the sort() function, if you need to order documents from a query.
For more software development tutorials, ideas and tips, visit http://www.romaniancoder.com/blog/
8 سال پیش
در تاریخ 1395/06/08 منتشر شده
است.
60,375
بـار بازدید شده