Closed Aeonrush closed 8 years ago
Hi, I'm not sure why this:
Art.find().fill('likes').exec(function (err, data) {
res.send(data);
});
doesn't work, mongoose-fill
seems not to mess with that mechanics.
And, can you explain how to catch errors with this? Will this work?
Yes will work, this is usual way to deal with errors when using promises.
Ah yes you probably right, I will look into it.
Fixed in 1.6, thanks for reporting.
Hi When I tried to write this:
I didn't got response. But with this:
all works fine. And, can you explain how to catch errors with this? Will this work?
Thanks