CloudKit, Episode 5: Create CKQueries | raywenderlich.com

To select records from a database, you’ll use CKQuery. A CKQuery describes how to find all records of a specific type that match certain criteria.


This is a companion discussion topic for the original entry at https://www.raywenderlich.com/27184225-cloudkit/lessons/5

Hi @jessycatterwaul

Hope you are doing great. I followed your lecture. When i tried to create a CK Record, an error shows which reads “Failed to Fetch”.

Screenshot 2021-12-10 at 1.23.01 PM

Any idea what might be the reason ?

Thanks

I haven’t seen that message in the CloudKit Console. At what point are you seeing it? And have you made sure to create it in the Public Database?

As we can see in the attached screenshot above, when i try to hit the “Save” to create the record, a red error messages appears which says “Failed to fetch”. Yes i am trying to create the record in public database.

I’ve been experimenting, trying to reproduce the problem, but I haven’t been able to yet. If you can figure this out, please let us know here.