I'm having a problem with new SwiftUI. I created CoreData models Cars and Datepoints with a one-to-many relationship (one car -> many datepoints). Therefore I need a fetch request for gathering all datepoints of a car. How am i doing this?
Have a look at my current code for gathering just the cars. Can I modify @FetchRequest to reach that?
@FetchRequest(entity: Cars.entity(), sortDescriptors: [NSSortDescriptor(keyPath: \Cars.name, ascending: true)]) var cars: FetchedResults<Cars>