Using Storefront API to Get Product Recommendations.

New Member
1 0 0

Hi 

I'm creating a react native app that is connected to a shopify store, and i'm using Storefront api to get all the data i want (collection, products....).

I was trying to get the product Recommendations by the product id using QueryRoot as described in the documentation but i wasn't able to build the query.

I got this error: "Field 'productRecommendation' doesn't exist on type 'QueryRoot'" 

Anyone does know how to build the query or if there an alternative way to get product recommendations?

Screen Shot 2020-11-25 at 11.19.36 AM.png

Screen Shot 2020-11-25 at 11.30.44 AM.png

0 Likes