Skip to contents

list records

Usage

ph_list_records(app, api, collection, ...)

Arguments

app

the application name

api

the api to hit

collection

the collection name or id

...

the query params as supported by PocketBase List/Search API

Value

a tibble

Examples

if (FALSE) {
ph_list_records(
  app,
  "/api/collections/",
  collection = "nw_traffic",
  perPage = 1,
  sort = "-FLIGHT_DATE",
  skipTotal = 1)

# get only subset of columns
ph_list_records(
  app,
  "/api/collections/",
  collection = "nw_traffic",
  sort = "-FLIGHT_DATE",
  fields = "id,FLIGHT_DATE,DAY_TFC"
  )
}