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

# predicate

The predicate of the fetch request.

## Declaration

```swift
var predicate: NSPredicate? { get set }
```

## Discussion

Discussion The predicate instance constrains the selection of objects the NSFetchRequest instance is to fetch. If the predicate is empty—for example, if it is an AND predicate whose array of elements contains no predicates—the request has its predicate set to nil. For more about predicates, see Predicate Programming Guide.

## See Also

### Specifying Fetch Constraints

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