java - Latest method for getting "Sister Database" in mongodb -


i've been using com.mongodb.db in previous projects upto now. since, getdb() method deprecated , use getdatabase() instead. need change db class mongodatabase class work(i guess?). problem i'm facing class is, there no getsisterdabatase() method found in class. know how access "sibling database" using mongodatabse class? in advance!

have checked db.getsiblingdb(name) ? please specify mongodb version, jdk version , driver. using driver mongodb driver 3+ , has getsisterdb(name).


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -