I create a CloudKit record using - (void)saveRecord:(CKRecord *)record completionHandler:(void (^)(CKRecord *record, NSError *error))completionHandler; function.
Then I fetch all records of this type using - (void)performQuery:(CKQuery *)query inZoneWithID:(CKRecordZoneID *)zoneID completionHandler:(void (^)(NSArray /* CKRecord */ *results, NSError *error))completionHandler; in the completionHandler of saveRecord. But in the result of this query there is no record that I added just before.
Then when I perform query again after some time I have all records including the one I just added. How I can now that the record that I've just added is already in the database. Shouldn't it be available already in completion handler?