You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am building a shop with multiple sites/languages. When querying entries using graphql I can use localized{} to get the corresponding entry from different sites (e.g. used for language navigations). It seems like there's no way to do this in the product query.
My workaround now is to add an additional query which filters products based on the specific product.id and returns the url of this product in each site. Whilst this works, it would be far easier and more consistent if there would be a product.localized.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am building a shop with multiple sites/languages. When querying entries using graphql I can use localized{} to get the corresponding entry from different sites (e.g. used for language navigations). It seems like there's no way to do this in the product query.
My workaround now is to add an additional query which filters products based on the specific product.id and returns the url of this product in each site. Whilst this works, it would be far easier and more consistent if there would be a product.localized.
Beta Was this translation helpful? Give feedback.
All reactions