---
title: propertiesToFetch
framework: swiftdata
role: symbol
role_heading: Instance Property
path: swiftdata/fetchdescriptor/propertiestofetch
---

# propertiesToFetch

The specific subset of attributes to fetch if you don’t require them all.

## Declaration

```swift
var propertiesToFetch: [PartialKeyPath<T>]
```

## Discussion

Discussion If you know ahead of time that you’re going to process (or display) a subset of a model’s attributes, use this property to provide the key paths of those attributes. When the fetch runs, it’ll return values for only the specified key paths, which may result in faster and more efficient fetches. However, if you subsequently access a nonfetched attribute, you’ll incur the additional overhead of fetching the corresponding value from the persistent storage. note: An empty array causes the fetch to include all attributes, not none. The default value is an empty array.

## See Also

### Specifying the fetched attributes

- [relationshipKeyPathsForPrefetching](swiftdata/fetchdescriptor/relationshipkeypathsforprefetching.md)
