node.js - Connecting to a database in monogolab via mongojs -
I have a node server and so far my database was local, but now I need to keep it on mongolab.
Can you tell me how to connect to the database, please?
-
>
-
Use go to db = mongojs ('mongodb)
: // USERNAME: PASSWORD @ ds043497 .mongolab.com: 43497 / heroku_app14986764 ', [' collectionname ']);
And you will connect. I did not test it.
Comments
Post a Comment