You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -113,11 +113,10 @@ This middleware supports the queries as follow the pattern bellow:
113
113
| Ordenation |`?sort=name,-age`| Allows you to apply sort rules. To do this, simply provide the name of the attributes/properties that will be used to sort the result of the query separated by commas. For ascending _(ascending)_ use before the attribute name the `+` character and for descending _(descending)_ use the `-` character. By default the order is ascending, so the `+` character is optional, just inform the attribute name. |`{ sort: { name: 'asc', age: 'desc' }` }|
114
114
| Filters |`?name=elvis&age=83`| It allows limiting the number of resources requested, specifying some attributes and their expected values. To do this, simply use the attribute/property name with an equal sign and the expected value. `?name=elvis` indicates that the request should return the data that has the exact same name as Elvis, `?name=elvis,john` indicates that the name is equal to Elvis or John and `?age=18&age=25` indicates that age is equal to 18 and 25.[²](#notes)|`{ filters: { name : 'elvis', age: 83 } }`|
115
115
116
-
**NOTES**
117
-
* In the last release, is possible filter for sub-level seaches - like `location.city=New York`, advanced filters like `AND`, `<`, `<=`, `>`, `>=`. Soon support will be added for advanced filters like `OR`,`LIKE` and `Date`.
118
116
117
+
**NOTES**
118
+
* In the last release, is possible filter for sub-level seaches - like `location.city=New York`, advanced filters like `AND`, `<`, `<=`, `>`, `>=`,`OR`,`LIKE` and `Date`.
119
119
## Future Features
120
-
- Support for advanced filters (already implemented, for sub-levels searches - like 'jobs.employer' and comparative operators ($gt) ).
121
120
- Support for other NoSQL banks, in addition to MongoDB.
122
121
- ¹Support for relational databases such as MySQL, PostgreSQL and SQLite.
123
122
- Support to use the parser by passing the query string programatically: `parser(string)`.
0 commit comments