I've figured out how to query for some metadata for example calling this in my query:
<td>" + record['created'].value + "</td> <-- populates some table data
But this comes back undefined which confuses me because the CloudKit dashboard has a value for Created By (as part of the automatic Metadata that is created with each record.)
How do I query for the ID/UUID as well as get the response in a HTML/JS-readable manner?
After fetching one or more records with CloudKit.js you'll notice you get back an Object that looks like this:
The
recordName
is a record's unique identifier, and the Object has acreated
attribute which points to an Object with atimestamp
field.