Skip to content

karaxuna/meerkat

Repository files navigation

Meerkat · npm version

Library to simplify working with mongodb aggregation framework.

Installation

npm:

npm i @flibert/meerkat

yarn:

yarn add @flibert/meerkat

Usage:

import { paginate, match, sort } from '@flibbert/meerkat';

db.getCollection('subscriptions').aggregate([
  ...match({
    status: 'active',
  }),
  ...sort({
    createdAt: -1,
  }),
  ...paginate({
    skip: 0,
    limit: 100,
  }),
]);

See tests for more examples.

About

Library to simplify working with mongodb aggregation framework.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published