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

# predicates

An array of sample predicates that define the type of data that the query returns.

## Declaration

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

## Discussion

Discussion To query for multiple types of data, provide a sample predicate for each type. If your HKSamplePredicate instances return different HKSample subclasses, use sample(type:predicate:) to create the sample predicates.

## See Also

### Accessing Query Properties

- [limit](healthkit/hksamplequerydescriptor/limit.md)
- [sortDescriptors](healthkit/hksamplequerydescriptor/sortdescriptors.md)
