No ModifedAt Index in CloudKit

Hi,

I do not see an option to add 'modifiedAt' as an index to a record in a public database in CloudKit. I've added the modifiedTimsestamp index for both QUERYABLE and SORTABLE but that doesn't seem to be loading the Public database as expected. I can write to it just fine.

I can't find any documentation stating that modifiedAt has been deprecated in favor of something else. The only thing I can find is this video from WWDC2020 on how to configure a Public database: https://developer.apple.com/videos/play/wwdc2020/10650/

I've been following along with Donny Wals CoreData book in attempting to learn this stuff.

Any help would be greatly appreciated. Thanks

Edit: I should probably mention I have reset the environment numerous times. I seem to share some of the pain in this post: https://developer.apple.com/forums/thread/682698

Accepted Answer

Actually, IT DOES seem that adding 'modifiedTimestamp' as QUERYABLE and SORTABLE (along with recordName) as indexes does allow it to pull down correctly. Upon the very first launch of the app, it does not have any of the Public data and currently takes quitting the app and restarting to get the public records to display. I assume this is something I can handle with polling.

Thanks

No ModifedAt Index in CloudKit
 
 
Q