DEV Community

Discussion on: How to connect to MongoDB Atlas using Node.js

Collapse
ivanzapatarivera profile image
Ivan J. Zapata-Rivera

Hi, my coding friend!
I believe replacing
const url = ... with
const url = process.env.ATLAS_URI
would be a more secured approach.

Collapse
dalalrohit profile image
Rohit Dalal Author

Yes, definitely my coding friend.
I've added , for demo purpose.