@stejnar/mongoopose
Advanced tools
Comparing version
{ | ||
"name": "@stejnar/mongoopose", | ||
"version": "1.3.2", | ||
"version": "1.3.3", | ||
"description": "functional programming for mongoose", | ||
@@ -5,0 +5,0 @@ "dependencies": {}, |
@@ -34,7 +34,4 @@ | ||
There is no npm package at the moment!</br> | ||
So this is the way to go: | ||
npm install @stejnar/mongoopose | ||
npm install git@https://github.com/Stejnar/mongoopose.git | ||
# Usage | ||
@@ -130,2 +127,19 @@ | ||
#### Params.as | ||
Type: *String* </br> | ||
Default: mongoose.Model.modelName</br> | ||
This is the key with that a queries result gets assigned to *Params*. | ||
#### Params.select | ||
Type: Object </br> | ||
This is the selector that gets passed into mongoose queries. | ||
#### Params.query | ||
Type: Object </br> | ||
This is the update object for Model.update() | ||
#### Params.save | ||
Type: Object </br> | ||
This gets passed into the mongoose model constructor for Model.save(). | ||
#### Params.add() | ||
@@ -132,0 +146,0 @@ |
23181
1.56%174
8.75%