mongo-querystring

JSON →
library 4.1.1 ·javascript
verified Jun 5, 2026

A library to parse URL query strings into MongoDB query objects. Version 4.1.1 is the latest stable release. It supports basic operators ($eq, $gt, $gte, $lt, $lte, $ne, $in, $nin, $exists, $regex), geospatial operators ($geoWithin, $near), custom query functions (after, before, between), and features like aliased, blacklisted, and whitelisted parameters. It automatically parses numbers and booleans from strings. Useful for building APIs that accept user-specified MongoDB queries via URL parameters. Differentiators: simple syntax for common MongoDB operations, support for geo queries, and built-in aliasing/blacklisting for security.