Answers for "export mongodb collection to csv"

1

mongoexport csv with query

mongoexport -d database -c collection --type=csv --out file.csv --fields name,fromHour,fromMin,toHour,toMin --query '{"_id":"56a647bff167043ad6ee49c0"}'
Posted by: Guest on August-16-2020
0

how to export mongodb database to json

sudo mongoexport --db newdb -c restaurants --out newdbexport.json
Posted by: Guest on August-09-2020
0

any application to export mongodb database from server

$ mongoexport
Export MongoDB data to CSV, TSV or JSON files.

options:
  -h [ --host ] arg         mongo host to connect to ( <set name>/s1,s2 for 
  -u [ --username ] arg     username
  -p [ --password ] arg     password
  -d [ --db ] arg           database to use
  -c [ --collection ] arg   collection to use (some commands)
  -q [ --query ] arg        query filter, as a JSON string
  -o [ --out ] arg          output file; if not specified, stdout is used
Posted by: Guest on November-30-2020

Code answers related to "export mongodb collection to csv"

Browse Popular Code Answers by Language