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
Copy file name to clipboardExpand all lines: README.md
+15-14Lines changed: 15 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -47,27 +47,26 @@ app.get('/', (req, res) => {
47
47
#### The middleware uses the following defaults:
48
48
```js
49
49
options = {
50
+
use_page:false,
51
+
client_db:'mongodb',
52
+
date_field: {
53
+
start_at:'created_at',
54
+
end_at:'created_at'
55
+
},
50
56
default: {
57
+
fields: {},
58
+
sort: {},
59
+
filters: {},
51
60
pagination: {
52
61
limit:Number.MAX_SAFE_INTEGER,
53
62
skip:0,
54
63
page:1
55
-
},
56
-
fields: {},
57
-
sort: {},
58
-
filters: {}
59
-
},
60
-
use_page:false,
61
-
client_db:'mongodb',
62
-
date_field: date_field: {
63
-
start_at:'created_at',
64
-
end_at:'created_at'
65
-
}
64
+
}
65
+
}
66
66
}
67
67
```
68
68
If the options are not provided, the default values will be used for the treatment of queries strings.
69
69
70
-
71
70
### 2. Using custom configurations:
72
71
```js
73
72
constexpress=require('express')
@@ -80,7 +79,7 @@ app.use(qs({
80
79
date_field: {
81
80
start_at:'timestamp',
82
81
end_at:'timestamp'
83
-
}
82
+
},
84
83
default: {
85
84
fields: {name:1 , age:1, number:1, _id:0},
86
85
sort: { created_at:'desc' },
@@ -110,11 +109,13 @@ app.use(qs({
110
109
111
110
For more details, access the [wiki](https://github.com/nutes-uepb/query-strings-parser/wiki/2.-Usage-Examples) page.
112
111
113
-
### 3. Supported Query Strings
112
+
## Supported Query Strings
114
113
115
114
For informations and details about the supported query strings, access the [wiki](https://github.com/nutes-uepb/query-strings-parser/wiki/3.-Supported-Query-Strings) page.
116
115
116
+
## New Features
117
117
118
+
- Support for parser functions. For informations and details about parser functions, access the [wiki](https://github.com/nutes-uepb/query-strings-parser/wiki/4.-Parsers) page.
118
119
## Future Features
119
120
- ¹Support for relational databases such as MySQL, PostgreSQL and SQLite.
0 commit comments