---
title: fetchRequest
framework: coredata
role: symbol
role_heading: Instance Property
path: coredata/nsfetchedpropertydescription/fetchrequest
---

# fetchRequest

The fetch request of the receiver.

## Declaration

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

## Discussion

Discussion Setting the fetch request raises an exception if the receiver’s model has been used by an object graph manager.

## See Also

### Related Documentation

- [Core Data Programming Guide](apple-archive/documentation/Cocoa/Conceptual/CoreData.md)
- [Predicate Programming Guide](apple-archive/documentation/Cocoa/Conceptual/Predicates/AdditionalChapters/Introduction.html.md)
