Creating a MongoDB database with Liquibase

I have a MongoDB Atlas cluster Is there a way I can I create a MongoDB database in that cluster with Liquibase?

All I’ve seen is creating a collection within a MongoDB Atlas Cluster but not creating a MongoDB database. Does Liquibase support a feature like this?

Hi @marvindang,

I think a way you can try to achieve what you are looking for would by using [runCommand](https://docs.liquibase.com/change-types/mongodb/run-command.html) (or its alternative [adminCommand](https://docs.liquibase.com/change-types/mongodb/admin-command.html), of course to run this change type successfully you have to be an administrator in MongoDB).

I hope it helps.

Thanks,
Daniel.