Download .zip |
Info | Documentation | View files (14) | Download .zip | Reputation | Support forum | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2017-01-07 (16 hours ago) | Not yet rated by the users | Total: 53 This week: 4 | All time: 463 This week: 15 |
Version | License | JavaScript version | Categories | |||
mongo-filter 1.0.5 | MIT/X Consortium ... | 5 | Data types |
Description | Author | |||
This package can filter collection elements with mongoQuery syntax. Innovation Award
|
Filtering elements in collection based on json filters with a mongoQuery like syntax
var filter = mongofilter({name:{$like: '%test%'}, age:12});
// filtering a complete collection
filter.filter(collection);
// or alternatively
collection.filter(filter);
// check a single item match against given filter
filter.filterItem(item); // return true or false
// also you can call 'and' or 'or' on the predicate directly:
filter.and({prop:val}).filter(collection);
filter.or({prop:val}).filter(collection);
Files |
File | Role | Description | ||
---|---|---|---|---|
dist (4 directories) | ||||
js (1 file) | ||||
tests (1 file) | ||||
AUTHORS | Data | Authors | ||
bower.json | Data | Sample output | ||
index.d.ts | Data | Auxiliary data | ||
package.json | Data | Sample output | ||
README.md | Doc. | Documentation |
Files | / | dist | / | amd |
File | Role | Description |
---|---|---|
mongofilter.js | Class | Class source |
mongofilter.min.js | Class | Class source |
Files | / | dist | / | system |
File | Role | Description |
---|---|---|
mongofilter.js | Class | Class source |
mongofilter.min.js | Class | Class source |
Files | / | dist | / | umd |
File | Role | Description |
---|---|---|
mongofilter.js | Class | Class source |
mongofilter.min.js | Class | Class source |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.