Contents

count(for:)

Returns a count of the objects the specified request fetches when it executes.

Declaration

nonisolated func count<T>(for request: NSFetchRequest<T>) throws -> Int where T : NSFetchRequestResult

See Also

Registering and fetching objects