Filters are used for filtering results in changes feed functions. This means that the server will only ship information that passes the filter.
_design/nedm_default
doc_type
This filter only passes documents of a certain type or within a certain set. Query parameters that may be sent to this filter are:
handle_delete
- true
(will pass documents that have been deleted) or false
(will not)type
- either string or array of strings of types of documents to pass
Example usage: this is used on the measurements site page to selectively listen for new measurements arriving: see here
_design/execute_commands
execute_commands
This filter passes command documents (e.g. "type" = "command"
). It takes as a query parameter:
only_commands
- array of strings of command keys to passThis is essential for pynedm
listeners that are only
listening for a select set of commands.
pynedm
to listen for particular commands
arriving, see here