Instance Property

recordsToSave

The records to save to the database.

Declaration

var recordsToSave: [CKRecord]? { get set }

Discussion

This property contains the array of CKRecord objects that you want to save. The initial contents of the array are set to the records you specified in the init(recordsToSave:recordIDsToDelete:) method. You can modify this array as needed before executing the operation. The records must all target the same database but may belong to different zones in the database.

If you intend to change the value of this property, do so before executing the operation or submitting the operation object to a queue.

See Also

Configuring the Operation Object

var recordIDsToDelete: [CKRecord.ID]?

The IDs of the records to delete permanently from the database.

var savePolicy: CKModifyRecordsOperation.RecordSavePolicy

The policy to apply when the server contains a newer version of a specific record.

var clientChangeTokenData: Data?

A data token used to track client-side changes to records.

var isAtomic: Bool

A Boolean value indicating whether the entire operation fails when one or more records in the same zone cannot be written.