Can I list my databases in an Atlas function?

Is it possible to list my databases in a trigger function on Mongodb Atlas?
I need to loop through some databases.

Hey Thiago, listDatabases is not currently available at the moment for Functions, but you could get around this by storing a list of your databases in a separate collection and retrieving that list when you need to perform the loop as a workaround.

1 Like

I think this could work for now. Thank you, Sumedha! :heart:

1 Like

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.