Detecting app blocks and app embed blocks

It appears that I can detect whether my app is embedded via the dying REST, but how to do it with graphQL? This is part of my app install automation …

Detecting app blocks and app embed blocks

Anchor link to section titled “Detecting app blocks and app embed blocks”

If you want to identify whether a merchant has added app blocks to their theme, or enabled app embed blocks, you can use the Asset REST Admin API resource to look for blocks that match your app type. …

Any suggestions?

I believe you should be able to use this to get the content of theme files.

With that you should be able to query for the files and check the templates to see if any of them are using the app blocks and app embed blocks.

You may want to use the .dev Assistant to help generate some code for fetching what you want.