mongodb-search-interface
JSON →mongodb-search-interface v1.2.5 is a lightweight TypeScript utility that builds MongoDB query objects from structured search parameters, commonly used in GraphQL resolvers or REST APIs. It provides a simple function to transform a filter object into a MongoDB query with support for operators like $text, $regex, and comparison operators. Unlike more manual approaches, it offers a declarative way to construct search queries without raw MongoDB query building, ideal for search endpoints. The package is stable but infrequently updated, last release in 2021. It ships TypeScript definitions.
Resources
packagemongodb-search-interface ↗