Contents

forceReplace

Replaces one or more records with the specified records regardless of conflicts.

Declaration

CloudKit.RecordsBatchBuilder forceReplace(
	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 value is an array of replacement Cloudkit.record dictionaries. The recordChangeTag key is not required in the Cloudkit.record dictionaries. Only the values of the fields in these dictionaries are replaced. The other field values are set to null.

  • options:

    A dictionary containing options for this operation. This parameter contains a single desiredKeys key that is an array of field names (String values). Only the fields specified in the array are set.

Return Value

The object that received this method call.

Discussion

Creates records if they don’t exist.

See Also

Replacing Records