couchdb-best-practices icon indicating copy to clipboard operation
couchdb-best-practices copied to clipboard

Naming conventions for filter views.

Open emig opened this issue 10 years ago • 0 comments

I propose a prefix out in followed by the property. examples:

filter that filters out design documents: out-design-doc (note we use singular, since the function works on a single item per call) filter that filters in documents with createdOn property after a passed date: in-createdon-after

in - out allows to prevent using the negative form and is the form used with the verb filter

I don't think we should encode the query params if used, since that would create a strong bound btw the name and the params.

filter combinations

We can combine filter names with generic logic conjunctors: or , and

emig avatar Jul 09 '15 09:07 emig