Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mongoose-query-parser

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mongoose-query-parser - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

2

package.json
{
"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`)

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc