i have a remote mongo server and i want to connect to that with nodejs . i tried connecting directly with mongo shell and it was ok ... but i cant connect to that mongodb server in nodejs .. the mongo command for connection :
mongo --host 192.168.10.33 --port 27017 -u mohammad -p "mypassw@12" --authenticationDatabase=access
i only want to convert that command into nodejs connection config.. something like:
uri = mongodb://mohammad:mypassw@12@192.168.10.33:27017/"