</>PackageGraphPackageGraph

mquery

npmv6.0.0

Expressive 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.

0
Direct dependencies

Runtime packages this one declares itself.

0
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

132 KB
Install size

Unpacked size of this package plus its entire runtime tree.

Tree depth

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 set
Example truncated — see the full README.

mquery vs the alternatives

Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.

PackageWeekly downloadsDependentsLicenseLast release
mquerythis page4.4M1MIT9 months ago
kysely15.6M1MIT1 day ago
mongoose6.1M0MIT1 day ago
knex01MIT1 day ago
query-string22.1M3MIT1 day ago
mpath5.8M1MIT1 day ago

Dependencies

Declared by mquery v6.0.0. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (4)

eslint 8.xeslint-plugin-mocha-no-only 1.1.1mocha 11.xmongodb 6.x

Used by

Popular packages that depend on mquery.

Relationship graph

Dependencies (left) and dependents (right) of mquery.

mongoosemquery
mquery dependencies dependents

Frequently installed together

Release history

1 release in the last two years, typically about 64 days apart.

Recent versions of mquery
VersionPublishedSizeLicense
6.0.0latest9 months ago132 KBMIT
5.0.03 years ago125 KBMIT
4.0.34 years ago239 KBMIT
4.0.24 years ago240 KBMIT
4.0.14 years ago239 KBMIT
4.0.05 years ago240 KBMIT
4.0.0-rc05 years ago240 KBMIT
3.2.55 years ago242 KBMIT
3.2.45 years ago242 KBMIT
3.2.35 years ago242 KBMIT
3.2.27 years ago240 KBMIT
3.2.17 years ago240 KBMIT
3.2.08 years ago240 KBMIT
3.1.28 years ago239 KBMIT
3.1.18 years ago231 KBMIT

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.

Maintainers

Keywords

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.