mirror of
https://github.com/jo/couchdb-best-practices.git
synced 2026-05-15 14:16:00 -06:00
[GH-ISSUE #57] Naming conventions for filter views. #441
Labels
No labels
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/couchdb-best-practices#441
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @emig on GitHub (Jul 9, 2015).
Original GitHub issue: https://github.com/jo/couchdb-best-practices/issues/57
I propose a prefix
outinfollowed 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-afterin - out allows to prevent using the negative form and is the form used with the verb
filterI 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