---
title: ModelContext.NotificationKey.queryGeneration
framework: swiftdata
role: symbol
role_heading: Case
path: swiftdata/modelcontext/notificationkey/querygeneration
---

# ModelContext.NotificationKey.queryGeneration

A token that indicates which generation of the model store SwiftData is using.

## Declaration

```swift
case queryGeneration
```

## See Also

### Accessing notification keys

- [ModelContext.NotificationKey.deletedIdentifiers](swiftdata/modelcontext/notificationkey/deletedidentifiers.md)
- [ModelContext.NotificationKey.insertedIdentifiers](swiftdata/modelcontext/notificationkey/insertedidentifiers.md)
- [ModelContext.NotificationKey.invalidatedAllIdentifiers](swiftdata/modelcontext/notificationkey/invalidatedallidentifiers.md)
- [ModelContext.NotificationKey.updatedIdentifiers](swiftdata/modelcontext/notificationkey/updatedidentifiers.md)
- [ModelContext.NotificationKey.historyTokens](swiftdata/modelcontext/notificationkey/historytokens.md)
