---
title: samplePredicates
framework: healthkit
role: symbol
role_heading: Instance Property
path: healthkit/hkcorrelationquery/samplepredicates
---

# samplePredicates

A dictionary whose keys are HKSampleType instances and whose values are NSPredicate instances.

## Declaration

```swift
var samplePredicates: [HKSampleType : NSPredicate]? { get }
```

## Discussion

Discussion The query uses this dictionary to perform complex tests against the correlation’s contents. For more information, see init(type:predicate:samplePredicates:completion:).

## See Also

### Getting Property Data

- [correlationType](healthkit/hkcorrelationquery/correlationtype.md)
