MONGO DB database
Hello, I want to connect my project with mongodb, but currently I can only connect to the "test" database and I want to create one called production, but I can't
This is my url to connect to mongo :
mongodb://mongo:********@containers-zone.railway.app:PORT
but if i try mongodb://mongo:********@containers-zone.railway.app:PORT/production
it does not work
9 Replies
Project ID:
6d443798-0942-4904-a7e4-89b7375c8bde
6d443798-0942-4904-a7e4-89b7375c8bde
I think you need to pass dbName in the connect options
Solution
Gonna try
damn knew it off the top of his head
<:glasses_3:1138999941361053726>
here I was reading the docs so I could get a screenshot
just gonna mark, I know that's correct because it's in the docs and has worked times in the past