Helpers
Helpers are syntactic sugar to get records from your PocketBase instance. In addition to simplifying the process of fetching records, they also provide type safety, autocompletion and caching.
To access helpers, you have to, at least, provide an instance of PocketBase SDK to the helpersFrom
function.
getRecord
getRecord
is a helper to get a single record from your PocketBase instance. It takes a RecordRef as its first argument and an object with a schema as its second argument.
getRecords
getRecords
is a helper to get multiple records from your PocketBase instance. It takes a collection name as its first argument and an object with some options (at least a record schema) as its second argument.