Skip to content
This repository was archived by the owner on May 1, 2025. It is now read-only.

Commit 6d6f3a6

Browse files
author
Hans Kristian Flaatten
committed
docs(readme): document custom queries configuration
1 parent 5f88757 commit 6d6f3a6

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,16 @@ var MongoQS = require('mongo-querystring');
7676
* `near` - proximity geostatial query
7777
* `after` - modified since query
7878

79+
```javascript
80+
var qs = new MongoQS({
81+
custom: {
82+
bbox: 'geojson', // your geometry field
83+
near: 'geojson', // your geometry field
84+
after: 'updated_on' // your last modified field
85+
}
86+
});
87+
```
88+
7989
#### Define custom queries
8090

8191
Custom queries are on the folling form; you define the URL query parameter name

0 commit comments

Comments
 (0)