Skip to Main Content

MongoByte MongoDB Logo

Welcome to the new MongoDB Feedback Portal!

{Improvement: "Your idea"}
We’ve upgraded our system to better capture and act on your feedback.
Your feedback is meaningful and helps us build better products.

Status Submitted
Created by Guest
Created on Feb 14, 2020

Add support to export multiple collections

I would like to be able to export multiple collections at the same time. It would be nice if Compass generates json files named with the collection name.
  • Leonardo Rico
    Oct 24, 2026

    +1. We move small/medium datasets between environments regularly, and doing it one collection at a time is painful.

    I've built this in Compass, behind a feature flag: select several collections of a database and export them to JSON or CSV (one file per collection, plus an optional metadata file with indexes and collection options), and import such a folder back — choosing what happens with collections that already exist. I'd like to contribute it upstream.

    Details, videos and the branches: https://www.reddit.com/r/MongoDB_Official/comments/1xdxclc/i_built_exportimport_multiple_collections_for

  • Guest
    Mar 24, 2024
    Not only export also import too