Is there a way to query the existence of a field? Predicate format "%K = nil" doesn't seem to work.
Query of field existence
Add a Comment
Is there a way to query the existence of a field? Predicate format "%K = nil" doesn't seem to work.
If you want to determine the existence of a field, you to fetch a record and examine the keys in the record,
There's no query for "Does a record with (or without) this field exist?" because that's impossible to answer in the non-closed or incremental results model that CloudKit uses.