https://github.com/ndabap/mongodb-pipeline-factory
NOT MAINTAINED Generate MongoDB pipelines with ease
https://github.com/ndabap/mongodb-pipeline-factory
generation helper javascript mongodb mongoose nodejs pipeline
Last synced: over 1 year ago
JSON representation
NOT MAINTAINED Generate MongoDB pipelines with ease
- Host: GitHub
- URL: https://github.com/ndabap/mongodb-pipeline-factory
- Owner: ndabAP
- License: mit
- Created: 2018-05-11T16:04:36.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2020-09-04T09:36:55.000Z (almost 6 years ago)
- Last Synced: 2025-03-14T15:11:45.143Z (over 1 year ago)
- Topics: generation, helper, javascript, mongodb, mongoose, nodejs, pipeline
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/mongodb-pipeline-factory
- Size: 837 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# NOT MAINTAINED mongodb-pipeline-factory
Generate MongoDB pipelines with ease. Save dozens of keystrokes.
## Features
- Faster overviews
- pipeline validation
- lightweight library
- 100 % test coverage
## Installation
```bash
$ npm install mongodb-pipeline-factory --save
```
## Usage
Import the stages or operators you need first.
```js
import { cond, gt, project } from 'mongodb-pipeline-factory'
```
Now build your first pipeline.
```js
project(
['item', 1],
['discount', cond(
gt('$quantity', 250),
30,
20
)]
)
```
## Author
[Julian Claus](https://www.julian-claus.de) and contributors.
## License
MIT