I have a core data model, using the database store, that contains entities with classic parent/child relationships. Each parent has a number of children, each child a single parent, creating a multi-level hierarchy.
What I would like to do is use a predicate in a fetch request to return a list of all the entities between a given entity and the root.
If I was doing this in code I'd work my way up the 'parent' chain till I hit the root entity, but I'd like to do this in a predicate so that the search stays 'in the database'. This will be part of a search an so needs to be relatively fast.
Is this possible?