GetStream / stream-node-orm

NodeJS Client - Build Activity Feeds & Streams with GetStream.io
https://getstream.io/
BSD 3-Clause "New" or "Revised" License
130 stars 19 forks source link

Errors unhandled in ORM #32

Open alexanderlperez opened 6 years ago

alexanderlperez commented 6 years ago

Another dev I'm working with ended up hunting for half-an-hour looking for a reason why an activity wasn't triggering as expected, turns out there was a typo in the field.

However, definitely something avoidable if errors were accessible from the mongoose hooks. Right now they end up unhandled:

https://github.com/GetStream/stream-node-orm/blob/14ca95fd925d54682f797eb97604d43b5bcc1b9b/src/backends/mongoose.js#L104-L108

dwightgunning commented 6 years ago

Thanks for the report.