mondroid icon indicating copy to clipboard operation
mondroid copied to clipboard

Doubt

Open payel-otaku opened this issue 1 year ago • 4 comments

Can't I just view all my database in one go? Do I have to add differently for every database? Screenshot_2024-08-12-16-23-54-22_fcde083d3d73307de6d0ab46e65a2b5d

Like in the screenshot, I have more collections but I can only see the Test one, why ?

payel-otaku avatar Aug 12 '24 11:08 payel-otaku

Please make sure that your connection string is correct. Your connection string have to specify parameters given below

  • databaseName
  • authSource
  • authMechanism

Also your user must have read & write permissons.

For more information about troubleshooting click here.

vedfi avatar Aug 12 '24 13:08 vedfi

I am facing the same issue. Lemme explain. As you know mongodb doesn't have the "database-nane" parameter by default. Like this is a default mongo db url mongodb+srv://user:[email protected]/?retryWrites=true&w=majority

Currently we have to make different connection in your app in order to view different database. I think she meant that by adding only 1 mongo db url, we should get all database list in that app.

prono69 avatar Aug 12 '24 14:08 prono69

Please make sure that your connection string is correct. Your connection string have to specify parameters given below

  • databaseName
  • authSource
  • authMechanism

Also your user must have read & write permissons.

For more information about troubleshooting click here.

Like for example if I have 3 database: test1, test2 and test3 in Cluster0, we have to make 3 different connections in Mondroid app. It would be great if we could just the url and then the app will show all the dbs and collections in them. Like

  • Test1 Collections
  • Test2 collections
  • Test3 Collections

Hope you understands my point. Thank you

prono69 avatar Aug 12 '24 14:08 prono69

Unfortunately mongo_dart driver don't support accessing multiple databases within single connection. Due to limitation; each database must be accessed by seperate connection.

However the developer of mongo_dart library, works on another mongodb plugin that supports browsing databases within single connection. But its currently on alpha stage, that means its not stable so we cannot use it in Mondroid.

vedfi avatar Aug 12 '24 14:08 vedfi