CKModifyRecordsOperation records limit?

I'm trying to delete many records with one CKModifyRecordsOperation and getting this error:

<CKError 0x600000dbe4f0: "Limit Exceeded" (27/1020); "Your request contains 552 items which is more than the maximum number of items in a single request (400)">

This obviously means, that Modify Operation has record limit of 400 which is equal to CKQueryOperation.maximumResults. The good solution here would be to chunk the array of records into subarrays with length less than 400 and add multiple delete operations to the database.

The only problem is that the limit for CKModifyRecordsOperation is neither documented nor provided with a constant, so it's basically a magic number.

In hope that my prayers would be heard I want to ask to add maximumResults constant to CKModifyRecordsOperation.

Or you can wipe the repository clean and start over via the cloud kit console.

@MobileTen we do not discuss here how to wipe repository, good luck to find better application for your sparkling wisdom!

**Update: ** turns out CKQueryOperation.maximumResults is actually equals to 0, so the value is hidden. But the general idea is to give some way to split records in chunks so CKModifyRecordsOperation will not fail.

CKModifyRecordsOperation records limit?
 
 
Q