Class

CloudKit.RecordsResponse

A CloudKit.RecordsResponse object encapsulates the results of fetching records.

Declaration

interface CloudKit.RecordsResponse

Overview

The methods in the CloudKit.Database class that operate on records and the commit method in the CloudKit.RecordsBatchBuilder class return a Promise object that resolves to a CloudKit.RecordsResponse object if the operation is successful. You should not create instances of this class directly.

Errors can occur for individual operations although the overall method may succeed. If an individual operation is successful, a corresponding CloudKit.Record dictionary appears in the records array. If an individual operation is unsuccessful, a corresponding CloudKit.CKError appears in the errors array.

For examples using the CloudKit.Database methods that resolve to a CloudKit.RecordsResponse object, see the saveRecord and fetchRecord methods in CloudKit.Database.

Topics

Getting Records

records

The records for the successful operations.

numbersAsStrings

A Boolean value indicating whether the numbers in fields are represented as strings.

Identifying the Class

isRecordsResponse

A Boolean value indicating whether this object is an instance of the CloudKit.RecordsResponse class.

Logging

toString

Returns a string representation of this CloudKit.RecordsResponse object.

Relationships

Inherits From