knex-doc-filter

JSON →
library 0.1.0 ·javascript deprecated
verified Jun 7, 2026

A library that converts MongoDB-style query documents into knex.js query builder filters. Current version is 0.1.0, appears to be an early release with no recent updates. It supports common operators ($and, $or, $nor, $eq, $ne, $regex, $gt, $gte, $lt, $lte, $in, $nin, $not) and works by applying filter conditions to a knex query builder. Unlike direct MongoDB, it translates $regex to SQL LIKE, potentially with different semantics. It is a niche package for developers who prefer MongoDB query syntax while using SQL databases via knex. The package has low adoption and no recent maintenance, so users should assess stability.