In MongoDB, insertOne() method is used to insert a record or document into a collection.
Popular Post: NodeJs
In MongoDB, we use the find() and findOne() methods to find data in a collection. Is is same like Select in MySQL database.
In MongoDB, Query object is used to filter the result in collection. The first argument of the find() method is a query object.
In MongoDB, the sort() method is used to sort the result in ascending or descending order.
In MongoDB, you can delete records or documents by using the deleteOne() method.
In NodeJs, You can delete a table, or collection as it is called in MongoDB using the drop() method.
In NodeJs, You can update the document or records in MongoDB using updateOne() method.
In MongoDB, The limit() function is used to specify the maximum number of results to be returned.
MongoDB is not a relational database, but you can perform a left outer join by using the $lookup stage.