<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "HealthKit",
  "identifier" : "/documentation/HealthKit/HKQuery/predicateForObjectsWithNoCorrelation()",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "HealthKit"
    ],
    "preciseIdentifier" : "c:objc(cs)HKQuery(cm)predicateForObjectsWithNoCorrelation"
  },
  "title" : "predicateForObjectsWithNoCorrelation()"
}
-->

# predicateForObjectsWithNoCorrelation()

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

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

## Return Value

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

## Discussion

Use this convenience method to create a predicate that matches all objects not associated with a [`HKCorrelation`](/documentation/HealthKit/HKCorrelation) object. The following sample uses both the convenience method and a predicate format string to create equivalent predicates.

```objc
NSPredicate *noncorrelated = [HKQuery predicateForObjectsWithNoCorrelation];
 
NSPredicate *explicitNoncorrelated =
[NSPredicate predicateWithFormat:@"%K == nil", HKPredicateKeyPathCorrelation];
```

## See Also

[`HKPredicateKeyPathCorrelation`](/documentation/HealthKit/HKPredicateKeyPathCorrelation)

The key path for accessing the object’s correlation inside a predicate format string.

[`HKCorrelation`](/documentation/HealthKit/HKCorrelation)

A sample that groups multiple related samples into a single entry.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)