Is it possible to filter and only bring back content items what have a linked-item of type x e.g.
I have 3 content type A, B, and C
A has a field called subItems which takes either content type A, B or C
How would i construct a query for content-items that have at least one subItem of Content-type B
I think the scenario is not covered right in filtering operators.
On the other hand, you could filter out content items with
[any]filter if you have their codename.Content-type B[any]operator forsubitemselement with loaded codenamesYou could load codenames of
Content-type Bitems using /items endpoint.https://deliver.kontent.ai/<PROJECTID>/items?elements=null&system.type=content_type_bAnd then use
[any]filter:https://deliver.kontent.ai/<PROJECTID>/items?elements.subitems[any]=<codename1>,<codename2>,...