Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 2 months 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 (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-09-04T09:36:55.000Z (over 4 years ago)
- Last Synced: 2024-10-11T08:18:22.102Z (2 months 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: 3
- 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