Export database mongodb compass

broken image
broken image

Step 2: Navigate to your desired collection Step 1: Connect to the deployment containing the collection you wish to export data from. If you specify a filter, Compass only exports documents which match the specified query. You can use MongoDB Compass to import and export data to and from collectionsĬompass supports import and export for both JSON and CSV files Import data from CSV or JSON files into your MongoDB database. Click Connect for your desired cluster.Ĭlick the Connect button to navigate to the Compass Home Page. For Atlas, to obtain the connection string URI (we talked about this in the Atlas session): For local database: `mongodb://localhost:27017` Specifying Advanced Connection Options. You can connect your deployments by either:

broken image

When you open Compass, an initial connection dialog appears: MongoDB Compass is a powerful () (graphical user interface) for querying, aggregating, and analyzing your MongoDB data in a visual environment.Ĭonnect to a MongoDB deployment hosted on MongoDB Atlas, or a deployment hosted locally on your own machine.

broken image