---
title: fetchRequest
framework: coredata
role: symbol
role_heading: Type Property
path: coredata/nspersistenthistorytransaction/fetchrequest
---

# fetchRequest

A fetch request that has the persistent history transaction as the entity.

## Declaration

```swift
class var fetchRequest: NSFetchRequest<any NSFetchRequestResult>? { get }
```

## See Also

### Customizing History Fetch Requests

- [entityDescription](coredata/nspersistenthistorytransaction/entitydescription.md)
- [entityDescription(with:)](coredata/nspersistenthistorytransaction/entitydescription(with:).md)
