DEV Community

Discussion on: CRUD - MongoDB

Collapse
 
shravan20 profile image
Shravan Kumar B

You mentioned we need to install express.js; which is not required if you are just running this DB file. And the whole code can be written in much better way. What you have written in callback pattern of coding.

Now you have Promises and Async - Await Pattern to handle asynchronous operations.
If you want, I can work on this file and make a cleaner code.

:)

Collapse
 
saurabh37414118 profile image
Saurabh Kumar

Ya sure. If you want to make it a bit clear then it's most welcomed. And I just want to make it clear that this is just for beginners. So, I don't want to confuse them by adding Async and Await. Thanks for your suggestions. And yes Express is not needed :D.