Homepage

record_update

Last edit: Oct 13, 2026

Updates a record and returns it. Property values and atomic operations are
written directly in the database in one statement (unknown property names
raise an error), except when an upload or time property, nested records,
images or attachments are set, or the deprecated form_name is given

record_update(
  _index_update: Boolean = true
  form_name: String
  id: ID!
  record: RecordInputType!
): Record!

Arguments

_index_update (Boolean)

Deprecated. Also updates the record in the legacy records search index,
which can get very slow for larger amounts of data; use documents_upsert instead

form_name (String)

Deprecated, leave blank. Name of a legacy form that whitelists the
attributes that can be saved and runs its notifications and callbacks

id (ID)

ID of the record to update

record (RecordInputType)

Attributes to change; when record.table is given, the record must belong to that table

Type

Record

Record: a row of a table defined in app/schema, holding its values in properties

Questions?

We are always happy to help with any questions you may have.

contact us