I have the following heriacy.
GrandParent --> Parent --> Child
Parent and Child use @Parent Ref<GrandParent>
and @Parent Ref<Parent>
to create there parent relationship.
I am trying to come of with a good way to do a cascading delete for GrandParent
.
I of course I could load all the children, generate keys from them and delete by key. This seems terribly inefficient. Is there something where I could query by parent and turn the query results into a list of keys without having to do the full fetch?
Any thoughts, or third party libraries welcome.