query Product($slug: String!) { product(slug: $slug) { id name slug description price compareAtPrice isAvailable brand category specifications { key name value } variants { id sku price compareAtPrice quantity isAvailable options { key name value } images { url name order } } images { url name order } sizeGuide { name unit rows { label measurements { name min max value } } } priceTiers { variantId minQuantity maxQuantity unitPrice } seller { id name slug } reviewSummary { averageRating reviewCount } related(limit: 4) { id name slug imageUrl price } }}
Terminal
curl --request POST "https://storefront.ecomiq.pe/graphql" \ --header "Content-Type: application/json" \ --header "x-Store-Domain: my-store" \ --data-binary '{ "query": "query Product($slug: String!) { product(slug: $slug) { id name slug description price compareAtPrice isAvailable brand category specifications { key name value } variants { id sku price compareAtPrice quantity isAvailable options { key name value } images { url name order } } images { url name order } sizeGuide { name unit rows { label measurements { name min max value } } } priceTiers { variantId minQuantity maxQuantity unitPrice } seller { id name slug } reviewSummary { averageRating reviewCount } related(limit: 4) { id name slug imageUrl price } } }", "variables": { "slug": "mug" } }'