Are any examples on how to use Hierarchy Browser (Tree) Component with data from database

The only examples I've seen with this component are with hardcoded/made up values. I have never seen it used with a data subset. Is there an example of this component with actual data? What I want to do is to create an structure with 3 levels but using data from the database.

for example something like this

parent: {id, name, son}, where son is the next level node. Then I would have the following

son: {id, name, grandSon}, where grandSon is the next level node, the I would have the last set of data

grandSon: {id, name}

  Discussion posts and replies are publicly visible