mquery
npmv6.0.0Expressive query building for MongoDB
Safe to adopt
Yes — mquery scores well across adoption, maintenance, weight, supply chain, and licensing. 4.4M downloads per week and 1 known dependents. Last published 295 days ago.
- AAdoption: grade A, Excellent.
4.4M downloads per week and 1 known dependents.
- BMaintenance: grade B, Good.
Last published 295 days ago.
- AWeight: grade A, Excellent.
Zero runtime dependencies, about 132 KB installed.
- ASupply chain: grade A, Excellent.
No install scripts, 2 maintainers, and a contained dependency surface.
- ALicense: grade A, Excellent.
MIT — permissive, with no copyleft found in the dependency tree.
Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.
Install cost
What you actually take on by adding mquery to a project.
Runtime packages this one declares itself.
Distinct packages in the full runtime tree, deduplicated the way a package manager would.
Unpacked size of this package plus its entire runtime tree.
Longest resolved dependency chain below this package.
Compatibility
- Node.js
- node >=20.19.0
- Module format
- CommonJS only
- TypeScript
- No bundled types
- Install scripts
- None
Quick start
A usage example from the mquery README.
const mongo = require('mongodb');
const client = new mongo.MongoClient(uri);
await client.connect();
// get a collection
const collection = client.collection('artists');
// pass it to the constructor
await mquery(collection).find({...});
// or pass it to the collection method
const docs = await mquery().find({...}).collection(collection);
// or better yet, create a custom query constructor that has it always setmquery vs the alternatives
Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.
| Package | Weekly downloads | Dependents | License | Last release |
|---|---|---|---|---|
| mquerythis page | 4.4M | 1 | MIT | 9 months ago |
| kysely | 15.6M | 1 | MIT | 1 day ago |
| mongoose | 6.1M | 0 | MIT | 1 day ago |
| knex | 0 | 1 | MIT | 1 day ago |
| query-string | 22.1M | 3 | MIT | 1 day ago |
| mpath | 5.8M | 1 | MIT | 1 day ago |
Dependencies
Declared by mquery v6.0.0. Runtime dependencies are installed with the package; dev dependencies are not.
Dev (4)
Used by
Popular packages that depend on mquery.
Relationship graph
Dependencies (left) and dependents (right) of mquery.
Frequently installed together
RFC9562 UUIDs
An AST-based pattern checker for JavaScript.
A family of specs for interoperable TypeScript
Fast, unopinionated, minimalist web framework
Parse, validate, manipulate, and display dates
The fast, flexible & elegant library for parsing and manipulating HTML and XML.
{G,S}et object values using MongoDB-like path notation
Official client encryption module for the MongoDB Node.js driver
Next-generation take on pre/post function hooks
The official MongoDB driver for Node.js
the most correct and second fastest glob implementation in JavaScript
TypeScript definitions for node
Release history
1 release in the last two years, typically about 64 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 6.0.0latest | 9 months ago | 132 KB | MIT |
| 5.0.0 | 3 years ago | 125 KB | MIT |
| 4.0.3 | 4 years ago | 239 KB | MIT |
| 4.0.2 | 4 years ago | 240 KB | MIT |
| 4.0.1 | 4 years ago | 239 KB | MIT |
| 4.0.0 | 5 years ago | 240 KB | MIT |
| 4.0.0-rc0 | 5 years ago | 240 KB | MIT |
| 3.2.5 | 5 years ago | 242 KB | MIT |
| 3.2.4 | 5 years ago | 242 KB | MIT |
| 3.2.3 | 5 years ago | 242 KB | MIT |
| 3.2.2 | 7 years ago | 240 KB | MIT |
| 3.2.1 | 7 years ago | 240 KB | MIT |
| 3.2.0 | 8 years ago | 240 KB | MIT |
| 3.1.2 | 8 years ago | 239 KB | MIT |
| 3.1.1 | 8 years ago | 231 KB | MIT |
Overview
mquery is an npm package that expressive query building for MongoDB. It is very popular, with about 4.4M downloads per week and 1 known dependents in the graph. The latest version is 6.0.0, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need expressive query building for MongoDB and value a battle-tested, widely-adopted solution.
When not to use it
Consider an alternative if you need to have first-class TypeScript types out of the box, or if a more actively-maintained option better fits your npm stack.
Pros
- Large, well-established user base (4.4M weekly downloads).
- Clear open-source license (MIT).
Cons
- No bundled TypeScript types (may require a separate @types package).
Auto-generated from collected registry metadata. No external claims are inferred.
Frequently asked questions
Should I use mquery?
Yes — mquery scores well across adoption, maintenance, weight, supply chain, and licensing. 4.4M downloads per week and 1 known dependents. Last published 295 days ago.
How do I install mquery?
Run `npm install mquery` to add mquery to your npm project.
What license is mquery released under?
mquery is distributed under the MIT license.
How popular is mquery?
mquery has approximately 4,411,688 downloads per week and 1 known dependent packages.
Is mquery still maintained?
The most recent release of mquery (v6.0.0) was published 9 months ago.
Does mquery run install scripts?
No. mquery does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.