records_update_all
Updates every record of the table that matches the filter (all records of the
table when no filter is given). The matching records are selected immediately
and the returned count is their number; the update itself runs in a background
job unless sync is true. Property values and atomic operations are written
directly in the database without validations or callbacks; any other attribute
is applied record by record.
records_update_all(
_index_update: Boolean
filter: RecordsFilterInput
record: RecordInputType!
sync: Boolean
table: String!
): ObjectCount!
Arguments
_index_update (Boolean)
Deprecated. Also updates the records in the legacy records search index,
which can get very slow for larger amounts of data; use
documents_bulk_upsert instead
filter (RecordsFilterInput)
Conditions the updated records must match; all records of the table when omitted
record (RecordInputType)
Attributes to set on every matching record
sync (Boolean)
When true, the update finishes before the mutation returns instead of in a background job
table (String)
Name of the table whose records are updated
Type
ObjectCount
Result of a bulk operation