Skip to content

Instantly share code, notes, and snippets.

Created March 10, 2015 14:48
What would you like to do?
mongoexport that will dump Basis sleep data from MongoDB normalized collection into a .csv for import into Excel
mongoexport \
--collection sleepexport --type=csv --fields _id,start_time,offset,light_minutes,rem_minutes,deep_minutes,interruption_minutes,unknown_minutes \
--out mysleepdata.csv --db mydb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment