May 9th — v7.0.0-rc.3
Version 7 will be released soon. Read the v7 docs

getTopLevelResources

A method that retrieves only top-level Resources.

.getTopLevelResources()

Will return an array of resources that are not nested under any other resource. Nested child resources are available via the getChildren method.