How to check if a Database exists in MongoDB

I'm using the Database-Toolbox with the Default-Addon-Driver for my MongoDB connection.
Is there a way to list all available server databases or find if an specific database exists?

Answers (1)

I don't have any experience with MongoDB, but my guess is that this is not so much a MATLAB Database Toolbox question as it is a question about the database implementation itself. For example, in Postgres, there is an information schema where information such as this is stored (and can be queried).

Products

Release

R2019a

Asked:

on 1 Aug 2019

Answered:

on 1 Aug 2019

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!