<!--
{
  "documentType" : "article",
  "framework" : "CloudKitJS",
  "identifier" : "/documentation/CloudKitJS/reasons-for-query-notifications",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "Reasons for Query Notifications"
}
-->

# Reasons for Query Notifications

Constants indicating the event that triggered the notification.

## Topics

### Constants

[`const String QUERY_NOTIFICATION_REASON_RECORD_CREATED;`](/documentation/CloudKitJS/CloudKit.Notification/QUERY_NOTIFICATION_REASON_RECORD_CREATED)

A record matching the subscription’s predicate was created.

[`const String QUERY_NOTIFICATION_REASON_RECORD_DELETED;`](/documentation/CloudKitJS/CloudKit.Notification/QUERY_NOTIFICATION_REASON_RECORD_DELETED)

A record matching the subscription’s predicate was deleted.

[`const String QUERY_NOTIFICATION_REASON_RECORD_UPDATED;`](/documentation/CloudKitJS/CloudKit.Notification/QUERY_NOTIFICATION_REASON_RECORD_UPDATED)

A record matching the subscription’s predicate was updated.



---

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)