What might be good to know: while you may add subdocs to nested Y.Maps and Y.Arrays, adding a subdoc “inner” to a (Y.Map or Y.Array in a) subdoc “outer” will not be recognized by the “parent” Y.Doc of subdoc “outer”.
You may want to consider this detail when modelling your shared data structures…