Utility functions for MongoDB query operations, current stable version 2.6.5. A dependency of MongoDB Compass, it provides helpers for building and manipulating MongoDB query objects (e.g., filtering, projections, sort). Released as needed with Compass updates, it is primarily used internally by MongoDB GUI tools. Differentiators: focused on query utility rather than full driver, with TypeScript types included.
npm install mongodb-query-utilNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to import and use the three main utility functions to clean/filter MongoDB query objects.
Use import syntax instead of require; upgrade Node to >=10.
Upgrade to >=1.3.0 or clone the input before calling filterQuery.
Use filterQuery instead; it performs validation and filtering.
Run 'npm install mongodb-query-util' or 'yarn add mongodb-query-util'.
Use 'import { filterQuery } from 'mongodb-query-util'' instead of default import.Ensure the argument is an object (even empty) before passing to the utility functions.
No dependency data recorded yet.