mongoose-query-parser icon indicating copy to clipboard operation
mongoose-query-parser copied to clipboard

Convert url query string to MongooseJs friendly query object including advanced filtering, sorting, population, string template, type casting and many more...

Results 15 mongoose-query-parser issues
Sort by recently updated
recently updated
newest added

In the database , I have a field animation_library as a array I want all the record who has animation_library

# Chore * Add `mongodb-memory-server` to populate testing # Dependencies * `mongodb-memory-server@^9.1.6` # Tests ![image](https://github.com/leodinas-hao/mongoose-query-parser/assets/19377556/2a87e681-9432-492d-8155-0d5bab574de1)

# Add * `deepEqual` assertions in `@test('should parse query with string templates')` * `deepEqual`assertions in `@test('should parse predefined query objects')`

**Input:** ``` req.query = { is_public: false } ``` **output:** ``` { filter: { is_public : {$exists: false} } } ``` **Expected Output:** ``` { filter: { is_public : false...

**Create a sample collection named sales with the following documents** ``` db.sales.insertMany([ { "_id" : 1, "item" : "abc", "price" : NumberDecimal("10"), "quantity" : NumberInt("2"), "date" : ISODate("2014-03-01T08:00:00Z") }, {...

*mongoose populate with sort* ``` WizardModel.find({}) .populate({ path: 'spells', options: { sort: [['damages', 'asc']] } }) ``` *mongoose populate with match* ``` WizardModel.find({}) .populate({ path: 'spells', match: { level_required: {...

Bumps [minimist](https://github.com/minimistjs/minimist) from 1.2.5 to 1.2.8. Changelog Sourced from minimist's changelog. v1.2.8 - 2023-02-09 Merged [Fix] Fix long option followed by single dash [#17](https://github.com/minimistjs/minimist/issues/17) [Tests] Remove duplicate test [#12](https://github.com/minimistjs/minimist/issues/12) [Fix]...

dependencies

When I pass the dates in JSON `filter`, it's not parsed and resulted in `string` **Parser** ``` _parser = new MongooseQueryParser({ blacklist: ['apiKey', 'apikey'], sortKey: 'sort', limitKey: 'limit', skipKey: 'offset',...

Bumps [luxon](https://github.com/moment/luxon) from 1.27.0 to 1.28.1. Changelog Sourced from luxon's changelog. Changelog 3.2.0 (2022-12-29) Allow timeZone to be specified as an intl option Fix for diff's handling of end-of-month when...

dependencies

Need to support OR statement in REST API, and to build right query string for that. In some business case we have to filter the document with OR condition like...

enhancement
help wanted