Query Options
Here are some of the most common keys you can pass in the struct of options to control how the query is executed. Please check the API Docs for the full list.
Option | Description |
| Specifies the direction to sort the results based on the map function's "key" value. Valid values are ASC and DESC. |
| Number of records to return |
| Number of records to skip when returning |
| Flag to control whether the reduce portion of the view is run. If false, only the results of the map function are returned. |
| Specifies whether or not to include the entire document in the results or just the key names. Default is false. |
| Specify the start of a range of keys to return. |
| Specify the end of a range of keys to return. |
| Flag to control whether the results of the reduce function are grouped. |
| An array of keys to return. For complex keys, pass each key as an array. |
| Specifies if stale data can be returned with the view. Possible values are: |
Last updated