My site is suddenly suffering the same issue as reported here over a year ago - https://community.shopify.com/c/hydrogen-headless-and-storefront/storefront-quot-query-quot-field-not-returning-results-for-any/m-p/2129472
Overnight the graphQL queries using the Storefront API that use the “query” variable just don’t return any products. This on the site itself and using Postman to run the queries, the exact same queries when run through the Shopify GraphiQL App will return the expected products.
This is just a legacy site that I took over supporting and wasn’t originally involved in creating - for now I have implemented the workaround suggested in the linked thread using the search query instead. However this isn’t ideal because the products can’t be sorted by title which the original query was doing.
Any idea why this would just happen at random? I have checked the API release notes going back several years but can’t find any clues in there.