Created
November 14, 2019 21:05
-
-
Save Jlaird/4a02a76e27267767a4f0f1dacdb1c51b 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
var dbs = db.runCommand('listDatabases').databases.filter(({ name }) => name.contains('_platform')).map(({ name }) => name) | |
dbs.forEach((name) => { | |
var content = db.getSiblingDB(name).getCollection('Product').find({"type":"Site"}) | |
content.forEach((doc) => { | |
print(`${doc.url}: ${doc._id}`); | |
}) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment