Mongo
Serialize mongo objects
See what the json for a mongo object looks like
loop through all databases
You can use db.getSiblingDB()
to switch between databases and db.getCollectionNames()
to get the collection names. Note that you have to run the first command from the admin database in order to get the list of databases. A short script in the shell to achieve what you want to do would look something like the following:1
forEach and findOne
Find entries in collection one that do not exist in collection two.
\u0027
represents the unicode for apostrophe.
1. Iterate over all Mongo database, by Juan Carlos Farah on Apr 13 2015 ↩
Last updated