---
title: "fetchIdentifiers(_:)"
framework: swiftdata
role: symbol
role_heading: Instance Method
path: "swiftdata/datastore/fetchidentifiers(_:)"
---

# fetchIdentifiers(_:)

## Declaration

```swift
func fetchIdentifiers<T>(_ request: DataStoreFetchRequest<T>) throws -> [PersistentIdentifier] where T : PersistentModel
```

## See Also

### Processing fetch requests

- [fetch(_:)](swiftdata/datastore/fetch(_:).md)
- [DataStoreFetchRequest](swiftdata/datastorefetchrequest.md)
- [DataStoreFetchResult](swiftdata/datastorefetchresult.md)
- [Snapshot](swiftdata/datastore/snapshot.md)
- [DataStoreSnapshot](swiftdata/datastoresnapshot.md)
- [DataStoreSnapshotValue](swiftdata/datastoresnapshotvalue.md)
- [fetchCount(_:)](swiftdata/datastore/fetchcount(_:).md)
