Piece of generic feedback… and specific.
In general it is hard to use monger when you have multiple open DBs (this is something I do from time to time… moving data, or investigating a production and non-production DB side by side).
The key issue is that monger sets the DB in a global variable that is automagically shared by all functions. Sounds good at first, but a pain in some cases.
Now the specifics. Many of the functions allow you to specify the DB connection explicitly. But not all.
One key example is monger.collection/update
. To be honest this looks like an oversight.
Are the maintainers motivated to take some pull requests that would fix this? (It sort of seems like this scenario is beneath your radar.)
Thanks,
Paul
The key issue is that monger sets the DB in a global variable that is automagically shared by all functions. Sounds good at first, but a pain in some cases.
Now the specifics. Many of the functions allow you to specify the DB connection explicitly. But not all.