Without getting the prices of all variants in the pricelist, I only need to get a single variant. I can fetch prices on a pricelist as follows.
query ($priceList: ID!) {
priceList(id: $priceList) {
... on PriceList {
prices (first: 250) {
nodes {
price {
amount
currencyCode
}
compareAtPrice {
amount
currencyCode
}
variant {
id
displayName
}
}
pageInfo {
hasNextPage
endCursor
}
}
}
}
}
{
"priceList": "gid://shopify/PriceList/20097237245"
}
I don’t want to search the entire pricelist…