Created
March 9, 2017 15:45
-
-
Save machinehead/db974229107d577af4e3b6cd7b72a0ea to your computer and use it in GitHub Desktop.
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
db = db.getSiblingDB('tuplesdb') | |
print("[") | |
db.getCollectionNames().forEach(function(collection) { | |
db.getCollection(collection).find({ "instance": "lvn" }).forEach(function(doc) { | |
printjson(doc); | |
print(",") | |
}); | |
}) | |
print("]") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment