I have the following hierarchy.
GrandParent β Parent β Child
Using the parent and child languages @Parent Ref<GrandParent> and @Parent Ref<Parent> to create the parent relationship.
I am trying with a good way to do a cascading delete for GrandParent .
Of course, I could download all the children, generate keys to them and delete them by key. It seems terribly inefficient. Is there something I could ask the parent and turn the query results into a list of keys without having to do a full selection?
Any thoughts or third-party libraries are welcome.
google-cloud-datastore objectify
Marc M.
source share