This example illustrates how to connect your application to a different database after the application start. Use this approach in a multi-tenant application where you need to associate every user or ...
To start REST API to connect to the MongoDB, run fetch_data.py and endpoint.cjs first. Remember to fill in your own cluster, database and collection.