I know of getpath CMIS apis which can do this; but I am looking for a query which I can run in CMIS workbench.
Also, I am trying to do it for thousands of document in a folder hierarchy. I am able to fetch details like, object id, name etc, but couldn't figure a way to fetch folder path.