A reference to the parent record to this record.
- iOS 10.0+
- macOS 10.12+
- Mac Catalyst 13.0+Beta
- tvOS 10.0+
- watchOS 3.0+
A parent reference is used to teach CloudKit about the hierarchy of your records. This hierarchy of records will be shared if the share reference is set on a record.
A parent record reference must have a
The target of a parent reference must exist at save time — either already on the server, or part of the same
You are encouraged to set up the parent relationships as part of normal record saves, even if you are not planning on sharing records at this time. This allows you to share and stop sharing a hierarchy of records at a later date by only modifying the “top level” record, setting or clear its