Hello! I’m trying to fetch metafields data for a product on a product page using [slug]. How do I use the current product variable to fetch the data? I put the graphql fetcher component inside a plasmic commerce Product Box component. (I am completely new to Graphql)
Hey @harmonic_leopard! You should use the Override Variables
prop in the GraphQL Fetcher
component to override the variables with dynamic value.
Here’s an example: https://studio.plasmic.app/projects/p11ceTb45PauTKtWYJaaFU
Let me know if this helps you
Thank you! It works when fetching data for children. Although the graphql playground itself is returning an error.