MongoDB Query – CRUD operation

MongoDB Query – CRUD operation

Write a query for MongoDB operations

Create Database “University”

Create Collection “private”

Create Collection “central_uni”

MongoDB Query

Insert at least 2 documents in the collection “private” and in collection “central_uni”

For private

MongoDB insert Query

For central_uni

MongoDB insert Query

Delete the private university having name “C.J.Shah”

MongoDB delete Query
MongoDB delete Query

Find central_uni university named “J.r.Roy”

MongoDB find Query

Update the “contact no” of central_uni university where c_id is “101”

MongoDB update Query

Delete all documents from the private collection where the category field is under a list of “fack” categories

MongoDB update Query