I have a data structure like this:
Restaurant > Menu > Category > Dish
when I load every dish for a restaurant, using:
q = db.Query(Dish)
q.ancestor('Restaurant Key')
I would like for every dish to come with a path with the property 'name' of each ancestor:
dish.path = "Cheesecake Factory > Meals > Beefs > Beef with Potatoes"
I know about dish.to_path()
, but that only returns the ancestor's entity kind.