property_sort: Sort condition for database query

Description Usage Arguments Details Value Examples

View source: R/filters.R

Description

The property_sort() function applies a sort condition within a database query to sort how pages are returned.

Usage

1
2
3
4
5
property_sort(
  property,
  timestamp = "last_edited_time",
  direction = "descending"
)

Arguments

property

A character string; the name of the property to apply the sort to.

timestamp

A character string; must be one of last_edited_time or created_time.

direction

A character string; must be one of descending or ascending.

Details

The property_sort() function applies to a particular database property, by name or id. It applies a user-supplied condition to this property to sort pages are returned. This sort is only meant for use within the query_database function.

Value

A list; a formatted property sort.

Examples

1
2
3
4
5
property_sort(
  property = "Ingredients",
  timestamp = "last_edited_time",
  direction = "descending"
)

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