How are to-many attributes specified in a fetched property?
问题 I have two entities, Parent and Child. The Parent entity has a to-many relationship to Child named "children." Child has a String attribute named "childName." I want to make a fetched property on Parent, let's call it "specialChild" that returns a Child with a particular name, let's say "Special". The following predicates return an empty set when I access the fetched property: children.childName == "Special" SUBQUERY(children, $eachChild, $eachChild.childName = "Special").@count > 0 SUBQUERY