Recommendation products is not working in front end.

Topic summary

Recommended products tied to a product metafield are not appearing on the product page when fetched via GraphQL using AJAX on the storefront.

  • Setup: Front-end AJAX calls to a GraphQL query intended to render recommended products based on a product metafield.
  • Observed issue: On some product pages, few or no recommended products show on the storefront, while the identical GraphQL query returns more products when run in a GraphQL app/tool.
  • Scope: Inconsistency is specifically between the storefront AJAX implementation and the GraphQL app results.
  • Evidence: A Loom video is provided demonstrating the issue (link included in the post).

Requested help: Guidance on why the same query yields fewer/no results on the storefront and how to fix it.

Status: No responses or solutions yet; the issue remains open and unresolved.

Summarized with AI on December 21. AI used: gpt-5.

Hi All

We are trying to show the recommended products in product page based on the product meta field. We are using the Graphql using AJAX method. But the result is not appearing in front end. For some products we have very few of products in store front end.

But the same Graphql query pull more products in Graphql APP.

Here we have attached the loom video for more details.
https://www.loom.com/share/495a516a4f5744ad92a2b37de1323666

Please help me for this. Thank you in Advance

Thanks
Anna

Any one help for the above issue.