# maggregation-stage-builder

> Build query for mongodb using a class instance.

Latest version **1.0.1** (published 2019-11-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install maggregation-stage-builder
pnpm add maggregation-stage-builder
yarn add maggregation-stage-builder
bun add maggregation-stage-builder
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2019-11-27 |
| First published | 2019-11-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 8.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Luis Locon |
| Maintainers | loconluis |
| Keywords | mongo, builder, query, javascript |

## Links

- npm: https://www.npmjs.com/package/maggregation-stage-builder
- Homepage: https://github.com/loconluis/maggregation-stage-builder#readme
- npm.io page: https://npm.io/package/maggregation-stage-builder

## Alternatives

- [angular-pipes](https://npm.io/package/angular-pipes.md) — 5.6K weekly downloads
- [@ng-web-apis/midi](https://npm.io/package/@ng-web-apis/midi.md) — 2.6K weekly downloads
- [happn-3](https://npm.io/package/happn-3.md) — 1.6K weekly downloads
- [@opensip-cli/lang-go](https://npm.io/package/@opensip-cli/lang-go.md) — 1.2K weekly downloads
- [mongoose-typescript](https://npm.io/package/mongoose-typescript.md) — 85 weekly downloads

## Recent versions

- 1.0.1 (latest) — 2019-11-27
- 1.0.0 — 2019-11-27

## README

# Maggregation Stage Builder

What this class seeks is to simplify the way to create the queries in Mongo, chaining each method, and only receiving parameters, to avoid having a super long pipeline string.

# How to usage
 `$ npm install maggregation-stage-builder`
 ```js
 // Import the module
 const MSB = require('maggregation-stage-builder')

// Init the instance
 let _PIPE_ = new MSB();

 // Simple example for a lookup
_PIPE_.lookup('books', '_id', 'author', 'authorOfTheBook');
 ```


 Therefore it works with the current Mongo [documentation](https://docs.mongodb.com/manual/reference/operator/aggregation-pipeline/)

---
_Source: https://npm.io/package/maggregation-stage-builder · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
