<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.10.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -",
    "watchOS: 3.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CloudKit",
  "identifier" : "/documentation/CloudKit/CKQueryNotification/recordFields",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "CloudKit"
    ],
    "preciseIdentifier" : "c:objc(cs)CKQueryNotification(py)recordFields"
  },
  "title" : "recordFields"
}
-->

# recordFields

A dictionary of fields that have changes.

```
var recordFields: [String : Any]? { get }
```

## Discussion

For record updates and creations, this property contains the subscription’s desired keys. When you configure the notification info of a subscription, you specify the names of one or more fields in the [`desiredKeys`](/documentation/CloudKit/CKSubscription/NotificationInfo-swift.class/desiredKeys) property. When a push notification triggers, CloudKit retrieves the values for each of those keys from the record and includes them in the notification’s payload.

For query notifications that you fetch from a container, all keys and values are present. For query notifications that you create from push notifications, one or more keys and values may be missing. Push notification payloads have a size limit, and CloudKit can exclude record fields when a payload exceeds that limit. For information about the order, see the overview of this class.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)