I recently got onboarded to a legacy database written in Javascript. The codebase is a bit messy and I was asked to build an Admin panel it Typescript.
The current DB is MongoDB and I would also continue with that in the admin panel.
Is it possible to connect the two seperate apps to the same mongoDB database and for them to use the same clusters and collections?
I already tried implementing this and both apps connect seamlessly with the database but sometimes if I make a query to populate the data from a model, i get prompted that some MongoDb Models haven’t been registered. A fix to this is just to make a get request to the model and it is registered on the Admin panel.
This isn’t much of a problem but I want to be sure it wouldn’t have down sides in the future.
Benji is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.