---
title: "fetchHistory(_:)"
framework: swiftdata
role: symbol
role_heading: Instance Method
path: "swiftdata/historyproviding/fetchhistory(_:)"
---

# fetchHistory(_:)

## Declaration

```swift
func fetchHistory(_ descriptor: HistoryDescriptor<Self.HistoryType>) throws -> [Self.HistoryType]
```
