SwiftData Predicate with "format:"

Hi, if you have an array of object IDs, with CoreData you can fetch all of the objects for those IDs at once with the right predicate. It would look something like this:

let objectIDs: [NSManagedObjectID] = [id1,id2,id3,id4]
let predicate = NSPredicate(format: "self in %@", objectIDs)

Can something similar be created with a SwiftData predicate? For now I fetch all ids one by one and as you might guess, performance wise this is not great.

SwiftData Predicate with "format:"
 
 
Q