Get data From iCloud database on Apple Watch

I used the function below. The IOS feature works but does not work on WatchOS. does not print an error but does not download data. it will not connect to the database either. can you please help me with the modification?

func queryDatabaseDrive(){

       let query = CKQuery(recordType: "Drive", predicate: NSPredicate(value: true))        database.perform(query,inZoneWith: nil){(records, error) in            guard let records = records else {                return            }           test = records            self.tableRefresh()            print("test (test.count)")        }     }

Get data From iCloud database on Apple Watch
 
 
Q