CBL 'stale' parameter used to query views


#1

I think the docs describing the state parameter need updating, they don’t really make sense…

What is the behaviour if it is omitted? What are the valid values?


#2

I found the problem. It looks like sometimes quote marks are required for parameters, and sometimes not. For example, the following query string works:

...?key="2b4ad530-fadc-4a4e-bfad-cafad8bda9f8"&include_docs=true&latest=true&descending=true&stale=update_after

Note that the key parameter value requires quotes marks, and the stale parameter does not. Dropping or adding quote marks to make them consistent results in a 400 response. Is this by design?