I'm currently automating the mongodump process for both our staging and production databases using a Python script. For this use case, I only need to export the metadata—such as collection names, indexes, and validation rules—and exclude the actual data (i.e., .bson files). Is there a way to use mongodump (or any other tool/option) to achieve a schema-only dump without including document data? Any help or guidance would be much appreciated! Continue reading...