---
title: elements
framework: coredata
role: symbol
role_heading: Instance Property
path: coredata/nsfetchindexdescription/elements
---

# elements

An array of fetch index element descriptions.

## Declaration

```swift
var elements: [NSFetchIndexElementDescription] { get set }
```

## Discussion

Discussion Setting this property to an invalid value throws an exception, such as when the new value includes both R-tree and non-R-tree elements.

## See Also

### Inspecting an Index Description

- [entity](coredata/nsfetchindexdescription/entity.md)
- [name](coredata/nsfetchindexdescription/name.md)
- [partialIndexPredicate](coredata/nsfetchindexdescription/partialindexpredicate.md)
