---
title: predicates
framework: healthkit
role: symbol
role_heading: Instance Property
path: healthkit/hkanchoredobjectquerydescriptor/predicates
---

# predicates

A predicate that limits the results that the query returns.

## Declaration

```swift
var predicates: [HKSamplePredicate<Sample>] { get set }
```

## See Also

### Accessing Query Properties

- [anchor](healthkit/hkanchoredobjectquerydescriptor/anchor.md)
- [limit](healthkit/hkanchoredobjectquerydescriptor/limit.md)
