Created
January 17, 2019 20:02
-
-
Save toothfairy/abb80f195fe4100c2abbb218dab1cd3d to your computer and use it in GitHub Desktop.
Robo 3T export to json
This file contains 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 characters
var cursor = db.getCollection('foo').find({}, {}); | |
while(cursor.hasNext()) { | |
print(tojson(cursor.next())) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
let cursor1 = db.getCollection('exchanges').find({createdAt: { $gte: ISODate("2019-01-01 00:00:00.082Z") } });
while(cursor.hasNext()) {
print(tojson(cursor.next()))
}