Hi, great plugin, makes my code much easier to deal with :)
I'm currently building a REST API with a lot of mongoose and would like to have simple statements like:
res.json(User.find(req.params.userId));
does that work? I've seen in your code that you check the body object for being a promise, but not for being a mongoose query. I think, when creating REST interfaces often times you just want to pass on some data from DB without repackaging it into a different object, so returning it directly would help a lot.
Hi, great plugin, makes my code much easier to deal with :)
I'm currently building a REST API with a lot of mongoose and would like to have simple statements like:
does that work? I've seen in your code that you check the body object for being a promise, but not for being a mongoose query. I think, when creating REST interfaces often times you just want to pass on some data from DB without repackaging it into a different object, so returning it directly would help a lot.
Thanks