Skip to main content
Records are addressed by the API name of their object, such as '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 a nextCursor while there is more. Keep passing it back until it is null.

Other helpers

  • lookup finds records by what a person types, for pickers.
  • aggregate counts and totals records, in groups or overall.