Hi,
I've got my CloudKit records with created and modifed setup to be sortable and queryable but I'm having a hard time constructing a CloudKit.js query that will use those values.
This:
var query = {
recordType: "MyRecord",
sortBy: [{
fieldName: 'created'
}]
};
This doesn't work, I get this error:
Unknown field 'CKFieldName{_name='created'}
I also tried 'createdDate', 'modified', 'modificationDate' and all give the same error. What's the magic?