Contents

action

The ownership behavior for the records.

Declaration

var action: CKRecord.ReferenceAction { get }

Discussion

The value in this property determines which action, if any, to take when deleting the target of the reference object — that is, the object that the recordID property points to. When this property is CKRecord.ReferenceAction.deleteSelf, deleting the target object deletes any records that contain that reference in one of their fields. When this property is CKRecord.ReferenceAction.none, deleting the target object doesn’t delete any additional objects.

See Also

Getting the Reference Attributes