During the game, using the mognodb console help, I found the db.getSisterDB() method.
And I'm curious what the purpose of this method is. Looking at mongodb documentation and a quick google search did not give satisfactory results.
Typing db.getSisterDb.help generates an error, and typing db.getSisterDB gives the following definition for this method:
function ( name ){ return this.getMongo().getDB( name ); }
which suggests that this is just a wrapper around getDB . My guess is that it is used to access databases in a replica set, but I would like to listen to someone who can give me a more detailed explanation.
mongodb
Salvador dali
source share