I am trying to build a table of contents from a dataset from mongoDB and the data follows this pattern (as described in the mongDB docs HERE - Model Tree Structures with an