CloudKit-PHP icon indicating copy to clipboard operation
CloudKit-PHP copied to clipboard

do not get it with your example

Open hamburger123456 opened this issue 9 years ago • 0 comments

Hello, I'am new in CloudKit. I got the error message:

object(CloudKit\QueryResponse)#5 (2) { ["records":"CloudKit\RecordsResponse":private]=> NULL ["errors":protected]=> array(1) { [0]=> object(CloudKit\CKError)#6 (5) { ["serverErrorCode":"CloudKit\CKError":private]=> string(11) "BAD_REQUEST" ["reason":"CloudKit\CKError":private]=> string(50) "Did not find field: 'recordName' in type: 'Poodle'" ["recordName":"CloudKit\CKError":private]=> NULL ["uuid":"CloudKit\CKError":private]=> string(36) "5253a314-301d-4b21-b4aa-96e940273ab2" ["retryAfter":"CloudKit\CKError":private]=> NULL } } }
Did not find field: 'recordName' in type: 'Poodle'

my code is:

$query = new Query("Poodle");
$query->filter('recordName','023456-3F68-4cvfr-9D90-AB7BB966asde');
$response = $container->getPublicCloudDatabase()->performQuery($query, [ 'resultsLimit' => 1 ]);

the login (container) works fine.

whats wrong here? My traget is to get all fields for the record name. thx for any hint in advance

hamburger123456 avatar Nov 25 '16 10:11 hamburger123456