Question: here we will have COLLECTION_NAME as cats // inserting the data db.COLLECTION_NAME.insert(document) db.cats.insert({ name : kitty, age : 6 years, gender : female, adopton_status :

here we will have COLLECTION_NAME as cats // inserting the data db.COLLECTION_NAME.insert(document) db.cats.insert({ name : "kitty", age : "6 years", gender : "female", adopton_status : true }) db.cats.insert({ name : "Poe", age : "18 months", gender : "Male", adopton_status : true }) db.cats.insert({ name : "Mr Cuddles", age : "5 years", gender : "Male", adopton_status : false }) // finding the data db.cats.find( { gender: "female" } // updating the data db.cats.update( {"name" : "Mr Cuddles"}, {$set: { "adopton_status" : true}}); // remove all the data from the collection named cats db.cats.remove()

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!