mongoose-query-parser
Advanced tools
Comparing version 1.1.0 to 1.1.1
{ | ||
"name": "mongoose-query-parser", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "Convert url query string to MongooseJs friendly query object including advanced filtering, sorting, population, string template, type casting and many more...", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
@@ -144,3 +144,3 @@ # mongoose-query-parser | ||
```js | ||
parser.parse('fields=id,url'); | ||
parser.parse('select=id,url'); | ||
// { | ||
@@ -152,3 +152,3 @@ // select: { id: 1, url: 1} | ||
```js | ||
parser.parse('fields=-_id,-email'); | ||
parser.parse('select=-_id,-email'); | ||
// { | ||
@@ -251,3 +251,3 @@ // select: { _id: 0, email: 0 } | ||
- `limitKey`: custom limit operator key (default is `limit`) | ||
- `selectKey`: custom select operator key (default is `fields`) | ||
- `selectKey`: custom select operator key (default is `select`) | ||
- `sortKey`: custom sort operator key (default is `sort`) | ||
@@ -254,0 +254,0 @@ - `filterKey`: custom filter operator key (default is `filter`) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package