-
Type: New Feature
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 6.0
-
Component/s: Core VCS, Query & PageProvider
-
Tags:
-
Upgrade notes:
Currently in NXQL to query by ancestor (query of all the elements in a subtree rooted at a given point), you have to know the path of the root of the tree you're interested in, then do:
SELECT ... WHERE ecm:path STARTSWITH '/foo/bar'
But if what you have is an id and not a path, there is no direct syntax (from the id you have to get the document and then get its path).
It would be good to have a direct syntax using the id:
SELECT ... WHERE ecm:ancestorId = 'some-doc-id'