Hey I’ve integrate forest admin to my proyect with MongoDB which creates a new backend application connected to my NoSQL database.
All that works perfectly. The problem is when I want to connect a second NoSQL database. I followed the steps here: https://docs.forestadmin.com/documentation/how-tos/databases/plug-multiple-nosql-databases but there is no way it works. It seems to me that the document is not updated because it does not say anything about what to do with the file config/database.js (attached below) and in step 6 it says to declare the connections in middlewares/forestadmin/index.js folder and file that does not exist.
I would appreciate if you could help me to connect the second database to forest as any more specifc guide.
Currently I only have one connected as it is configured by following the steps to connect your project to forest with MongoDB by running the commands:
- forest projects:create “hjb” --databaseConnectionURL “mongodb://localhost:27017/db1” --applicationHost “localhost” --applicationPort “3310”
- cd “hjb”
- npm install -s
folders created by forest config:
Set up information: