<!--
{
  "availability" : [
    "iOS: 3.0.0 -",
    "iPadOS: 3.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.4.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreData",
  "identifier" : "/documentation/CoreData/NSEntityDescription/relationships(forDestination:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Core Data"
    ],
    "preciseIdentifier" : "c:objc(cs)NSEntityDescription(im)relationshipsWithDestinationEntity:"
  },
  "title" : "relationships(forDestination:)"
}
-->

# relationships(forDestination:)

Returns an array containing the relationships of the receiver where the entity description of the relationship is a given entity.

```
func relationships(forDestination entity: NSEntityDescription) -> [NSRelationshipDescription]
```

## Parameters

`entity`

An entity description.

## Return Value

An array containing the relationships of the receiver where the entity description of the relationship is `entity`. Elements in the array are instances of [`NSRelationshipDescription`](/documentation/CoreData/NSRelationshipDescription).

## Discussion

---

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)