How to filter graph result based on Applications and Ancestor in CMS 13

Hi, does anyone know what query to use to filter graph result in CMS 13 by the below?
  • Application
  • Ancestor
In CMS 12, we were able to filter by SiteId and Ancestor, but I can't seem to find how in the CMS 13 version.
https://docs.developers.optimizely.com/content-management-system/v13.0.0-CMS/docs/filtering
 
If it is not supported, any advice on how we can work around it is appreciated.
 
we are on version 13.1.0

Thank you


#342993
Jul 10, 2026 2:17

Hi Fithrathur, 

In CMS 13, SiteId and SiteDefinition are no longer part of the Optimizely Graph schema. The equivalent way to scope the query to an application/site is to filter using _metadata.url.base. Optimizely documents this specifically as the CMS 13 replacement for SiteId.

For ancestor filtering, CMS 13 exposes the hierarchy through _metadata.path. The path array contains the keys of the content item’s containers/ancestors, so you can filter it using the ancestor content GUID/key.

Refer the below link. CMS 13 comparison documentation: the Graph schema migration guide explains both the removal of SiteId and the new _metadata.path hierarchy

https://docs.developers.optimizely.com/content-management-system/v13.0.0-CMS/docs/cms-13-and-12-graph-comparison

 

 

#343032
Jul 14, 2026 15:47
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.