replace
Replaces one or more records with the specified records.
Declaration
CloudKit.RecordsBatchBuilder replace(
CloudKit.Record|CloudKit.Record[] records,
optional Object options
);Parameters
- records:
A Cloudkit.record dictionary representing the replacement record, if you are replacing a single record. If you are replacing multiple records, this parameter is an array of replacement Cloudkit.record dictionaries. The Cloudkit.record dictionaries must contain the
recordChangeTagkey. Only the values of the fields in these dictionaries are replaced. The other field values are set tonull. - options:
A dictionary containing options for this operation. This parameter contains a single
desiredKeyskey that is an array of field names (Stringvalues). Only the fields specified in the array are set.
Return Value
The object that received this method call.
Discussion
The fields whose values you do not specify are set to null.