mongo-query-to-postgres-jsonb

JSON →
library 0.2.19 ·javascript
verified Jun 5, 2026

Converts MongoDB query documents to PostgreSQL WHERE clauses for JSONB fields. Supports a wide range of MongoDB operators ($or, $and, $gt, $lt, $in, $regex, etc.), projections, updates ($set, $inc, $unset, $push, $pull, etc.), and sort. Current version 0.2.19 is stable and used by pgmongo. Differentiator: provides a drop-in-like experience for MongoDB developers querying JSONB columns in Postgres.