---
title: desiredKeys
framework: CloudKit JS
role: symbol
role_heading: Instance Property
platforms: [cloudkit js 1.0+]
path: cloudkitjs/cloudkit.recordzonechangesoptions/desiredkeys
---

# desiredKeys

An array of record field names that limit the amount of data returned. Only the fields specified in the array are returned. The default is null, which fetches all record fields.

## Declaration

```data
attribute String[] desiredKeys;
```
