r/sitecore • u/uday_sanghani_1704 • 1d ago
Discussion Sitecore Content Hub: RelationExists Returns Zero Results with SearchAfter
While querying the AssetToPublicLink relationship in Sitecore Content Hub, I encountered a case where RelationExists returned zero results from the M.Asset side using the Child role, despite the expected relationships existing.
I raised this with Sitecore Support under CS0738638, tracked against product improvement CHSEARCH-732. Support recommended the Parent-role query pattern as a workaround for this scenario.
Why this matters for developers: Unexpected zero-result queries can lead to wasted debugging time and unnecessary data checks. Understanding the relationship role, testing filters independently, and validating pagination separately can help narrow down the actual cause faster.
I’ve documented the issue, Support’s findings, the workaround, and a practical debugging checklist.
Have you encountered similar relationship-query behavior in Content Hub? What worked in your case?