api-query-params icon indicating copy to clipboard operation
api-query-params copied to clipboard

Convert URL query parameters to MongoDB queries

Results 17 api-query-params issues
Sort by recently updated
recently updated
newest added

Hello, I am not able to import the library as per the documentation. When doing it like so: `import aqp from 'api-query-params'` I get the following error: **TypeError: (0 ,...

I have the following Model: ```js const userSchema = new mongoose.Schema({ name: String, by: { type: mongoose.Schema.ObjectId, ref: 'User' } }) const UserModel = mongoose.model('User', userSchema, 'users') ``` and I...

Hi and sorry for my poor english. I've a problem with ')' char when i try to force cast with string() or use casters with a custom function. To reproduce...

pr-welcome

Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6. Commits 7efb22a 1.2.6 ef88b93 security notice for additional prototype pollution issue c2b9819 isConstructorOrProto adapted from PR bc8ecee test from prototype pollution PR See full...

dependencies

Bumps [shelljs](https://github.com/shelljs/shelljs) from 0.8.4 to 0.8.5. Release notes Sourced from shelljs's releases. v0.8.5 This was a small security fix for #1058. Commits 70668a4 0.8.5 d919d22 fix(exec): lockdown file permissions (#1060)...

dependencies

Bumps [glob-parent](https://github.com/gulpjs/glob-parent) from 5.1.1 to 5.1.2. Release notes Sourced from glob-parent's releases. v5.1.2 Bug Fixes eliminate ReDoS (#36) (f923116) Changelog Sourced from glob-parent's changelog. 5.1.2 (2021-03-06) Bug Fixes eliminate ReDoS...

dependencies

```typescript import * as aqp from 'api-query-params'; const query = aqp('filter={"$or":[{"key1":"value1"},{"key2":"value2"}]}', { whitelist: ['key1'] }); console.log(JSON.stringify(query, null, 2)); ``` **Will print out:** ``` { "filter": { "$or": [ { "key1":...

pr-welcome

Hi Loris, I'm using your lib for a long time and it's amazing: thanks! I found some limits in sorting and filtering in populated content. If I've understand well, it's...

pr-welcome

We are having an issues with the `!=` operator. When we try to query where `_id!=64514704b973cc48c724d563` instead of resolving this as `$ne` it instead is turning into `$not` which happens...