Mechanism wanted to set the "RecordID" Metadata field Query Index programmatically

Cloudkit allows us to create a schema in development by saving records. This is great, and comes in handy if you want to restart your cloudkit development environment. Unfortunately AFAICT if you want the recordID to be indexable (so that you can do things like find all records of a type using the TRUEPREDICATE) you have to set this by hand in cloud kit dashboard. Is there a way to do this programmatically that I'm missing? How about a way to make this the default? I worry that I'll clean out my schema (in order to clean up before deployment) and fail to set the recordID indexable in the dashboard. I'll launch the app and it significant cloudKit functionality will be "broken" because of it.

I haven't been able to find a way to do this either. Googling doesn't help...

Mechanism wanted to set the "RecordID" Metadata field Query Index programmatically
 
 
Q