effect-mongodb

JSON →
library 0.4.1 ·javascript
verified Jun 5, 2026

A MongoDB toolkit for Effect (v0.4.1), providing both Document-based (no runtime validation) and Schema-based (runtime validation via Effect Schema) APIs that mirror the native MongoDB driver. It wraps MongoDB operations in Effect effects for composable, typed error handling with MongoError. Requires peer dependencies effect ^3.10.14 and mongodb ^6.9.0. Supports cursors via toArray (eager) and toStream (streaming).