Each child may have a job property and in the case they have children as well, they would have the children property
You may also need a way to limit that information if you have many children for one of the job nodes.
constlimitedTree=awaitflow.getFlow({ id:topJob.id, queueName:'topQueueName', depth:1,// get only the first level of children maxChildren:2,// get only 2 children per node});const { children,job } = limitedTree;