'person'. Every method returns a promise.
Create, read, update, delete
delete takes a list of ids, so several records can be removed at once.
Two more write methods avoid a separate read:
upsert(object, match, values)updates the record whose unique field matches, or creates one, and tells you which it did.import(object, body)writes the rows of a CSV, reporting any that are invalid by row.
Ask for records
records.list takes a query, built with q(), a chainable builder.
Filters
Filters are built with helpers named after what they check:eq, neq, in, notIn, lt, lte, gt, gte, between, contains, startsWith, isEmpty, isNotEmpty, anyOf and allOf. Combine them with and, or and not.
Page through everything
A page carries anextCursor while there is more. Keep passing it back until it is null.
Other helpers
lookupfinds records by what a person types, for pickers.aggregatecounts and totals records, in groups or overall.
Related
- Querying records: the same query as JSON.
- Metadata and modules: read the schema.