0.1.4 • Published 7 months ago

@flibbert/meerkat v0.1.4

Weekly downloads
-
License
-
Repository
github
Last release
7 months ago

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.

0.1.4

7 months ago

0.1.3

7 months ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago