Query of field existence

Is there a way to query the existence of a field? Predicate format "%K = nil" doesn't seem to work.

Replies

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.