Contents

fetchRequest

The fetch request that identifies the managed objects to delete.

Declaration

@NSCopying var fetchRequest: NSFetchRequest<any NSFetchRequestResult> { get }

Discussion

This property contains the fetch request that identifies the managed objects to delete. If you initialize NSBatchDeleteRequest with an array of NSManagedObjectID, Core Data automatically generates a fetch request with a predicate that matches the identifiers in that array.