Export and Import Mongodb commands

To restore earlier database

To export a collection

To import a collection

To Update Single or Multiple records

To Query a collection for an array type field, by the length or array comparison

Query with multiple fields is as simple as writing general javascript condition

To Query by doing comparison on ObjectId type field

Leave a Reply

Your email address will not be published. Required fields are marked *