perform(_:inZoneWith:)
Searches for records matching a predicate in the specified record zone.
Declaration
func perform(_ query: CKQuery, inZoneWith zoneID: CKRecordZone.ID?) async throws -> [CKRecord]Parameters
- query:
The query that contains the search parameters. For more information, see Ckquery.
- zoneID:
The identifier of the record zone to search. If you’re searching a shared database, provide a record zone identifier; otherwise, you can specify
nilto search all record zones in the database.
Discussion
Returns The records that match the specified query.
For information on a more convenient way to search a database, see records(matching:inZoneWith:desiredKeys:resultsLimit:).