Importing and exporting data in MongoDB Compass


 

This article is part of Robert Sheldon’s continuing series on Mongo DB. To see all of the items in the series, click here.

When working with MongoDB, you’ll likely need to import or export document data from time-to-time. You can use MongoDB Compass for both types of operations, working with either the JavaScript Object Notation (JSON) format or the comma-separated values (CSV) format.

Both formats are commonly used to exchange data across different types of systems and applications. In Compass, you can import documents from JSON or CSV files, or you can export them in either format. You can