How do I retrieve records, excluding a field?

How do I create an NSPredicate object to be used with CKQuery to retrieve all records with all fields except for one field? I need to exclude the field because it is a large chunk of data?

Answered by ManuelMB in 338463022

What I do is:


   childRecord.setObject(parentName as CKRecordValue?, forKey: "parentName")

Instead of create a property for this field in the CKRecord, create a CKReference.

I created anyother recordtype for the large datum. Do I make the reference in the first recordtype to the recordName field in the second recordtype?

Accepted Answer

What I do is:


   childRecord.setObject(parentName as CKRecordValue?, forKey: "parentName")

Ok. Thanks.

How do I retrieve records, excluding a field?
 
 
Q