property_filter.Rd
The property_filter()
function applies a filter condition within a database
query to limit which pages are returned.
property_filter(property, type, body)
property | A character string; the name of the property to apply the filter to. |
---|---|
type | A character string; the property type as identified by Notion. |
body | A two-sided formula. The left hand side specifies the filter condition property - valid condition properties depend on the filter type - and the right had side specifies the filtering value. |
A list; a formatted property filter.
The property_filter()
applies to a particular database property, by name or
id. It applies a user-supplied condition to this property to limit which
pages are returned. For a full set of valid properties and property types,
see the documentation here.
This filter is only meant for use within the query_database
function.
property_filter( property = "Landmark", type = "rich_text", body = contains ~ "Bridge" ) #> $property #> [1] "Landmark" #> #> $text #> $text$contains #> [1] "Bridge" #> #>