---
title: includePendingChanges
framework: swiftdata
role: symbol
role_heading: Instance Property
path: swiftdata/fetchdescriptor/includependingchanges
---

# includePendingChanges

A Boolean value that indicates whether, when the fetch runs, it matches against currently unsaved changes in the model context.

## Declaration

```swift
var includePendingChanges: Bool
```

## Discussion

Discussion Set this property’s value to false to ignore any unsaved changes in the model context and match against a model’s persisted state instead. The default value is true.

## See Also

### Constraining the fetch

- [predicate](swiftdata/fetchdescriptor/predicate.md)
- [sortBy](swiftdata/fetchdescriptor/sortby.md)
- [fetchLimit](swiftdata/fetchdescriptor/fetchlimit.md)
- [fetchOffset](swiftdata/fetchdescriptor/fetchoffset.md)
