The issue is fixed. What was the problem? I had another line of code following the records line in which I did not set desiredKeys. Here's the line of code.
let (continuingMatchResults, cMatchCursor) = try await database.records(continuingMatchFrom: queryCursor!)
Oince I changed it to
let (continuingMatchResults, cMatchCursor) = try await database.records(continuingMatchFrom: queryCursor!, desiredKeys: desiredKeys)
all was well.
Topic:
App & System Services
SubTopic:
iCloud
Tags: