Contents

desiredKeys

The fields of the records to fetch.

Declaration

var desiredKeys: [CKRecord.FieldKey]? { get set }

Discussion

Use this property to limit the amount of data that CloudKit returns for each record. When CloudKit returns a record, it only includes fields with names that match one of the keys in this property. The property’s default value is nil, which instructs CloudKit to return all of a record’s keys.

If you intend to specify a value other than nil, do so before you execute the operation or add the operation to a queue.

See Also

Configuring the Query Operation