dashboardcloudkitckrecord

Field 'recordName' is not marked queryable - cloudkit dashboard


In Cloudkit Dashboard, I select Record Type, Edit Indexes, then I select Add Basic Index. I see in the dropdown createTime, createdBy, eTag, modTime, modifiedBy, recordID and the record fields. I do not see recordName in the dropdown( Attached screenshot). Without creating index on recordName, I cannot query the record in cloudKit Dashboard. I get error: Field 'recordName' is not marked queryable How to create index on recordName? screen shot of crete index


Solution

  • I ran into this same issue and solved it by adding ___recordID as a queryable index. When it is added to the list of indexes, the field changes to recordName.

    To add this as a queryable index, go to the Schema Section -> Indexes, and click Add Basic Index.