hm('recursive start'); hm('tree name', tree.name); hm('item %o', item); hm('end of subtree'); hm('iterating rel %o', rel); let relModelName = rel.ref; let relModel = Spikenail.models[relModelName]; hm('fetch', fetch, relItemId); if (fetch) { hm('need to fetch full item first', item._id); ); hm('fullItem', fullItem); relItemId = fullItem[rel.foreignKey]; hm('item fetched - new relItemId is', relItemId) hm('no ID found using FK, go to next rel', item._id); continue; hm('final topics tree %o', tree); hm('final topics %o', topics);