0.1.4 • Published 2 years ago

@flibbert/meerkat v0.1.4

Weekly downloads
-
License
-
Repository
github
Last release
2 years 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

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago