We’ve organized our content such that there are a bunch of top level Page entries. Each page has the content for that page on the website. The structure varies depending on the page that it is in and there are a bunch of linked entries below the parent Page entry.
When I publish an entry somewhere in the tree, it fires a webhook and in that webook request the JSON for the single entry is included. I need to know the Pages that include the changed entry so that I can clear a cache for that page. For instance, if I change and publish a “Product Card” that is used on two pages, I would like to know what two pages contain the changed product card.
Is it possible to query all the top-level entries for a given child entry? I don’t see a way.
I think my solution may be to query all entries in our app of type “page” and then recursively walk them to see if the changed entry is in that tree.