Skip to content

Commit 4556d91

Browse files
author
Lucas Rocha
authored
Update README.md
1 parent 36ced7d commit 4556d91

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

README.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ app.get('/', (req, res) => {
3939
* pagination: {
4040
* skip: 10,
4141
* limit: 10
42-
* }
42+
* },
43+
* original: '?fields=name,age&skip=10&limit=10&sort=created_at'
4344
* }
4445
*/
4546
```
@@ -58,7 +59,10 @@ options = {
5859
},
5960
use_page: false,
6061
client_db: 'mongodb',
61-
date_field: 'created_at'
62+
date_field: date_field: {
63+
start_at: 'created_at',
64+
end_at: 'created_at'
65+
}
6266
}
6367
```
6468
If the options are not provided, the default values will be used for the treatment of queries strings.
@@ -98,7 +102,8 @@ app.use(qs({
98102
* pagination: {
99103
* limit: 100,
100104
* page: 1
101-
* }
105+
* },
106+
* original: '?fields=name,age&age=30'
102107
* }
103108
*/
104109
```

0 commit comments

Comments
 (0)