fetchIdentifiers(_:)
Returns an array of persistent identifiers, where each identifier represents a single model that satisfies the criteria of the specified fetch descriptor.
Declaration
func fetchIdentifiers<T>(_ descriptor: FetchDescriptor<T>) throws -> [PersistentIdentifier] where T : PersistentModelParameters
- descriptor:
A fetch descriptor that provides the configuration for the fetch.
Return Value
The array of persistent identifiers. If no models match the descriptor’s criteria, the array is empty.