---
title: "relationships(forDestination:)"
framework: coredata
role: symbol
role_heading: Instance Method
path: "coredata/nsentitydescription/relationships(fordestination:)"
---

# relationships(forDestination:)

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

## Declaration

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

## Parameters

- `entity`: An entity description.

## Return Value

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.

## See Also

### Working with properties

- [propertiesByName](coredata/nsentitydescription/propertiesbyname.md)
- [properties](coredata/nsentitydescription/properties.md)
- [attributesByName](coredata/nsentitydescription/attributesbyname.md)
- [relationshipsByName](coredata/nsentitydescription/relationshipsbyname.md)
