---
title: fetchLimit
framework: swiftdata
role: symbol
role_heading: Instance Property
path: swiftdata/historydescriptor/fetchlimit
---

# fetchLimit

The maximum number of transactions to retrieve from the model store’s history.

## Declaration

```swift
var fetchLimit: UInt64
```

## Discussion

Discussion important: Use nil to tell the fetch to return all transactions of the associated type, not 0. The default value is nil.

## See Also

### Getting the descriptor configuration

- [predicate](swiftdata/historydescriptor/predicate.md)
- [sortBy](swiftdata/historydescriptor/sortby.md)
