Friday, March 31, 2023

Deletion

The delete_one function deletes a single document from the MongoDB collection. Previously we had inserted the document for a user named Mike. Let’s have a look at the MongoDB document inserted:table.find_one({'name':'Mike'})We will now delete this MongoDB document:table.delete_one({'name':'Mike'})Let’s...
Share:

Friday, March 17, 2023

Filter Conditions

We have seen how to fetch data from MongoDB using find and find_one functions. But, we don’t need to fetch all the documents all the time. This is where we apply some filter conditions.Previously we have inserted a document to the MongoDB collection with the name  field as Gyan. Let’s see how to...
Share: