How to export MongoDB collection to CSV
mongoexport command is used to export MongoDB collection into CSV or JSON format. Syntax mongoexport –db DB_NAME –collection COLLECTION_NAME –fields
mongoexport command is used to export MongoDB collection into CSV or JSON format. Syntax mongoexport –db DB_NAME –collection COLLECTION_NAME –fields