let context = PersistenceController.shared.container.viewContext
return try context.performAndWait {
    let fetchRequest = DbResource.fetchRequest()
    fetchRequest.includesPendingChanges = true
    fetchRequest.predicate = NSPredicate(format: "bodyHash == %@", bodyHash)
    return try context.fetch(fetchRequest).first
}