hi,
I have MongoDB on my system and I want to connect with the node
using bellow URI
mongodb://shakir_usr1:PASSWORD@Hostname:27017/shakir_db?authSource=admin
when I add ?authSource=admin after the db name it will connect.
if I remove ?authSource=admin at the end it will not connect.
My USER is created in admin db.
when adding?authSource=admin in the last which worked.
but I want it without ?authSource=admin it should work as well get this error in error log
“error”: “UserNotFound: Could not find user "shakir_usr1" for db "shakir_db"”}