A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
Hi everyone,
I'm developing a Shopify app using the Remix framework and utilizing the Shopify Resource Picker component to select products. In the product webhook, there's a term called inventory ID, and I need to fetch the unit cost for each product based on this inventory ID.
Here's a snippet of my current code:
I came across this GraphiQL query for fetching unit cost using inventory ID:
Could anyone guide me on how to dynamically implement this to fetch the unit cost for multiple selected products within the Resource Picker context? Specifically, I need help with:
Any help or pointers would be greatly appreciated.
Thanks in advance!