DEV Community

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

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.

dalalrohit profile image
Rohit Dalal Author

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