I'm having trouble understanding what does the second parameter to the mongoose.connect() do.
mongoose.connect(
"mongodb://localhost:27017/myDatabase",
{ useNewUrlParser: true }
);
Could you, please, let me know?
Thank you!
I've tried searching the MongoDB docs, the Mongoose docs, the Stack Overflow, and-of course-the web. I haven't found the explanation anywhere.
I'm working through the Get Programming with Node.js book and everything's going fine so far. However, I've decided to take a step back and inspect the book's provided code which contains a lot of code not introduced/shown in the book itself. I'm feeling lost due to the sheer amount of information presented in the last couple of days so I've decided to go through the book's code, line by line, and try to understand as much as I can before moving onward; otherwise, I'd feel as if I've learned when I'm well aware that I haven't. Conceptually maybe, but not in any real, practical sense.