I studied document databases, in particular RavenDb, and all the examples are clear and understandable. I just canβt find a single example when we donβt know in advance how many levels a given structure has. As an example, how would you save the family tree, given the following class:
public class Person{ public string Name {get;set;} public Person Parent {get;set;} public Person[] Children {get;set;} }
In most examples, I saw how we look for a composite root and insert it into a document. Here, it is simply not so obvious what the aggregate root and boundary are.
source share