I want to store hierarchical entities in the datastore. The children entities would have different kind, to represent something like this :
type EntityA struct {
Id string
LeafA *EntityA
LeafB *EntityB
SomeValue string
}
type EntityB struct {
Id string
OtherValue string
}
I planned to use ancestors, but it seems impossible to retrieve the children of a common ancestor that have different kind.
To retrieve the whole parent, is it possible to query all children of a common ancestors without specifying the kind ?
Or is there another possibility to solve this problem ?