I’m new to core data and try to get all children objects of various types with one query. Say there’s an “Animal” type as parent and “Cat”, “Dog” and “Bird” as children. I’d like to get both cats and dogs, but not Birds in single query returned as Animal objects. Is it possible?
Share
Managed objects have an
entityproperty, so you should be able to combine Kevin Sylvestre’s solution with a predicate ofentity.name != "Bird".