In the example data object used here
, is it possible to calculate a nodes "count" (for a particular node that has a non-empty child collection) instead of assigning it? For example, "drinks.Count" is set to "35". Are we able to define the columns in such a way that the count is summed instead of set?
Would it be better ot provide a flat list of data (with some sort of "ParentID" field) instead of a hierarchical one?