-
Type: Bug
-
Resolution: Duplicate
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
When an iterator function is passed to `cursor.map()` that throws an exception, that leads to an uncaught exception that tears down the whole Node.js process. It would seem like a better choice to forward the error the same way a read error from the database would be communicated.
- duplicates
-
NODE-5374 Cursor.hasNext should not transform documents
- Closed
- related to
-
MONGOSH-703 Throwing exceptions from cursor.map() callback crashes the shell
- Closed