DEV Community

Discussion on: Building a CRUD API with Node.js and MongoDB

Collapse
 
hdocampo profile image
hugol

Ok, solved, I find that in line 6 of my code, I left some wrong stuff in the if statement XD

instead of
if (err, products) {

it should be
if (err) {

my apologies!

Collapse
 
avneesh0612 profile image
Avneesh Agarwal

Ah np