compound_sort: Compound database sort

Description Usage Arguments Value Examples

View source: R/filters.R

Description

The compound_sort function combines a list of sorts into a compound one. Each element in this list should be an output of property_sort. This function is only meant for use within the query_database function.

Usage

1

Arguments

...

A list of property sorts.

Value

An object of class notionr_compund_sort.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
compound_sort(
  property_sort(
    property = "Ingredients",
    timestamp = "last_edited_time",
    direction = "descending"
  ),
  property_sort(
    property = "Travel Destinations",
    timestamp = "created_time",
    direction = "ascending"
  )
)

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