Thanks @Arun_Patidar @Tarun202 i concur with responses,.. There are
portions that i am unclear, hence trying to put it in a different way,
1. My requirement was to find if any of the descendant folder for a
parent, has an asset to in turn display the parent folder. It is nested.
I used
$(resource).searchStrategy(SearchStrategy.DFS).has("dam:Asset:first") or
$(resource).searchStrategy(SearchStrategy.DFS).find("dam:Asset:first")
the error with traversal was found. That means with
".searchStrategy(...