jsonpatch-to-mongodb

JSON →
library 1.0.0 ·javascript
verified Jun 5, 2026

Convert JSON Patch (RFC 6902) operations into MongoDB update documents. Version 1.0.0 provides a single function that translates an array of JSON patch operations (add, remove, replace, move, copy, test) into a MongoDB-compatible update object with $set, $unset, $push, $pull, etc. No release cadence specified; actively maintained by MongoDB.js team. Differentiators: lightweight, no external dependencies, designed specifically for MongoDB update generation.