Last active
September 21, 2021 10:41
-
-
Save axelvnk/b3e5f7d4c48eba0975feca06248dfce4 to your computer and use it in GitHub Desktop.
Revisions
-
Axel Vankrunkelsven revised this gist
Nov 7, 2017 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,3 @@ db.getCollection('event').find({whatever_field: 'value'}).forEach(function(u) { print('"' + u._id + '";"' + u.createdAt.toJSON() + '";'); }); -
axelvnk created this gist
Oct 30, 2017 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,3 @@ db.getCollection('event').find({whatever_field: 'value'}).forEach(function(u) { print('"' + u._id + '";"' + u.createdAt.toJSON() + '";"'); }); This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,2 @@ mongo db_name --username db_user --password db_password export.js > export.csv