Single defined mongodb connection - multiple databases


#1

I would like to connect to our MongoDB with the ability to change the database on the fly for the current user in our application. Is this possible? We have data that will have the same collection names and schema but different databases. I need to choose the database based on the user.


#2

You can do it by embedding the dashboards/questions in a web page. Then pass the user infortmation through with a filter. That’s assuming you can specify the database as a parameter of some sort (I could do it in MS SQL with linked databases or 4 parts SQL).

If you want to use the full UI, then no.