property_filter: Filter condition for database query

Description Usage Arguments Details Value Examples

View source: R/filters.R

Description

The property_filter() function applies a filter condition within a database query to limit which pages are returned.

Usage

1

Arguments

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.

Details

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.

Value

A list; a formatted property filter.

Examples

1
2
3
4
5
property_filter(
  property = "Landmark",
  type = "rich_text",
  body = contains ~ "Bridge"
)

dmolitor/notionr documentation built on Dec. 20, 2021, 12:11 a.m.