---
title: affectedStores
framework: coredata
role: symbol
role_heading: Instance Property
path: coredata/nsfetchrequest/affectedstores
---

# affectedStores

An array of persistent stores specified for the fetch request.

## Declaration

```swift
var affectedStores: [NSPersistentStore]? { get set }
```

## Discussion

Discussion The contents of the array are the identifiers for the stores to be searched when the fetch request is executed.

## See Also

### Specifying Fetch Constraints

- [predicate](coredata/nsfetchrequest/predicate.md)
- [fetchLimit](coredata/nsfetchrequest/fetchlimit.md)
- [fetchOffset](coredata/nsfetchrequest/fetchoffset.md)
- [fetchBatchSize](coredata/nsfetchrequest/fetchbatchsize.md)
- [NSFetchRequestExpression](coredata/nsfetchrequestexpression.md)
- [NSExpressionDescription](coredata/nsexpressiondescription.md)
- [NSFetchedPropertyDescription](coredata/nsfetchedpropertydescription.md)
