Using a product identifier like the product id or handle, I am trying to use the GraphQL API to get a product’s price for all market. I am able to get information like the product’s name in various markets using the product->translations(). Is there any similar strategy for getting a product’s price from each market?
I was able to get the pricesList for a market with this GraphQL API query:
{
markets(first: 10) {
edges {
node {
priceList {
prices(first:10) {
edges {
node {
price {
amount
currencyCode
}
variant {
id
product {
handle
}
}
}
}
}
}
}
}
}
}
From the priceList I can get the prices for all products in a market. However, in order to get the market price for a specific product, I would need to query the entire market’s priceList which seems very inefficient. Is there a simpler way of doing this?