Access MongoDB database by string
complete
W
Will Teixeira
We have several games on the same database. It would be nice to make a dropdown to switch between them. But unfortunately the mongodb connector forces you to name a collection within a database.
Example:
database collections: game1_leaderboards, game2_leaderboards,
game14_leaderboards.
Would be nice to have 1 mongodb connection for the entire database, then just pass a string for the collection that I'd like to query (this is how the sql adapter works). With this our number of database connections would go from 50 to 1, and more importantly we wouldn't have to update our connection list when we add more games (aka collections).
W
Will Teixeira
Just tried it out, works great! Thanks!
Dmitry Nehaychik
complete
Dmitry Nehaychik
Will Teixeira done! We've added a new "Override database name in action" setting at the data source configuration level which brings a database field in the Action settings UI https://docs.uibakery.io/data-sources/data-sources/mongodb#configuration
Dmitry Nehaychik
in progress
Kate from UI Bakery
under review