I’m checking if my app embed block is enabled by query setting_data.json
{
themes(roles: MAIN, first: 1) {
nodes {
files(filenames: "*settings_data.json") {
nodes {
filename
body {
... on OnlineStoreThemeFileBodyText {
content
}
}
}
}
}
}
}
But from yesterday, the query content will include the comment warning “IMPORTANT: The contents of this file are auto-generated.\n *\n * This file may be updated by the Shopify admin theme editor\n * or related systems. Please exercise caution as any changes\n * made to this file may be overwritten.” at the beginning of the file so I can’t use JSON.parse. I had to temporarily switch to rest api and everything was fine.