DEV Community

Cover image for how mongo import/export works ?
parmeshwar rathod
parmeshwar rathod

Posted on

how mongo import/export works ?

mongodump --uri "mongodb+srv://:@.mongodb.net/sample_supplies"

mongoexport --uri="mongodb+srv://:@.mongodb.net/sample_supplies" --collection=sales --out=sales.json

mongoimport --uri="mongodb+srv://:@.mongodb.net/sample_supplies" --drop sales.json

Top comments (0)