---
title: predicateForObjectsWithNoCorrelation()
framework: healthkit
role: symbol
role_heading: Type Method
path: healthkit/hkquery/predicateforobjectswithnocorrelation()
---

# predicateForObjectsWithNoCorrelation()

Returns a predicate that matches all objects that are not associated with a HealthKit correlation.

## Declaration

```swift
class func predicateForObjectsWithNoCorrelation() -> NSPredicate
```

## Return Value

Return Value A predicate that matches all objects that are not associated with any HealthKit correlations.

## Discussion

Discussion Use this convenience method to create a predicate that matches all objects not associated with a HKCorrelation object. The following sample uses both the convenience method and a predicate format string to create equivalent predicates.

## See Also

### Related Documentation

- [HKPredicateKeyPathCorrelation](healthkit/hkpredicatekeypathcorrelation.md)
- [HKCorrelation](healthkit/hkcorrelation.md)

### Creating object predicates

- [predicateForObject(with:)](healthkit/hkquery/predicateforobject(with:).md)
- [predicateForObjects(with:)](healthkit/hkquery/predicateforobjects(with:).md)
- [predicateForObjects(from:)](healthkit/hkquery/predicateforobjects(from:)-7j3p2.md)
- [predicateForObjects(from:)](healthkit/hkquery/predicateforobjects(from:)-89b4t.md)
- [predicateForObjects(from:)](healthkit/hkquery/predicateforobjects(from:)-9h87f.md)
- [predicateForObjects(withDeviceProperty:allowedValues:)](healthkit/hkquery/predicateforobjects(withdeviceproperty:allowedvalues:).md)
- [predicateForObjects(from:)](healthkit/hkquery/predicateforobjects(from:)-1ar4g.md)
- [predicateForObjects(withMetadataKey:)](healthkit/hkquery/predicateforobjects(withmetadatakey:).md)
- [predicateForObjects(withMetadataKey:allowedValues:)](healthkit/hkquery/predicateforobjects(withmetadatakey:allowedvalues:).md)
- [predicateForObjects(withMetadataKey:operatorType:value:)](healthkit/hkquery/predicateforobjects(withmetadatakey:operatortype:value:).md)
