Skip to main content
DocsCML Reference

CML — Default filters

You can define default filter conditions on a reveal that are always applied when the reveal is opened in Discover.

Example

reveals:
- name: active_customers
label: Active customers
primary_node: customer
default_filters:
- field: is_active
operator: equals
value: true
- field: created_at
operator: after
value: "2020-01-01"

Supported operators

OperatorField types
equalsstring, integer, boolean
not_equalsstring, integer
containsstring
greater_thaninteger, float, date
less_thaninteger, float, date
afterdate, datetime
beforedate, datetime
betweeninteger, float, date

Users can remove default filters in Discover, but they are re-applied on the next session.