9. How to update specific document
As we say, have you noticed Sakura collection show "Jutsu" not
"naturetype".
>db.ninja.update({'codename':'Naruto'},{$set:{'Jutsu':["Fire Dragon
Missile","Earth Landslide","Black Rain","Secret Tree","Time
reversal","Water wall"]}}
10. How to remove document?
>db.ninja.remove({"codename":"Sakura"})
How to remove all documents in a collection?
>db.ninja.remove({})
How to delete collection
>db.ninja.drop()
11. So now, you can perform some of the basic operation on mongo db
via mongo shell
I hope these basic queries help you to give a good start
I have added dummy documents in next slides. So that you can
practice more by adding these documents
To improve this tutorial for beginners please share your comments
on pritiatwork@gmail.com