couchdb-best-practices
couchdb-best-practices copied to clipboard
Naming conventions for filter views.
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