For a CKQueryOperation completion block, Cloudkit can return both an error object and a cursor object. When returning a cursor object, does it also return an error, namely CKErrorResultsTruncated? I'm trying to figure out when exactly I would encounter CKErrorResultsTruncated and this is the only instance I can think of. So when would I ever get this error, or is it just a companion to a query operation cursor?
Is an error returned with cursor for CKQueryOperations?
From the docs:
CKErrorResultsTruncated.
An error that occurs when CloudKit truncates a query’s results.
Consider limiting query results count to CKQueryOperation.maximumResults
constant.
I guess CloudKit also has usage limits, so it can truncate the response in case when the app makes too much requests, for example.