Simple product data types
The SimpleProduct
data type implements the following interfaces:
Attributes that are specific to the simple products can be used when performing a products
query.
Sample query
The following query returns information about simple product 24-MB01
, which is defined in the sample data.
Copied to your clipboard{products(filter: {sku: {eq: "24-MB01"}}) {items {sku__typenameuidnamecategories {uidnamepath}price_range {minimum_price {final_price {currencyvalue}}maximum_price {final_price {currencyvalue}}}stock_status}}}
Copied to your clipboard{"data": {"products": {"items": [{"sku": "24-MB01","__typename": "SimpleProduct","uid": "MQ==","name": "Joust Duffle Bag","categories": [{"uid": "Mw==","name": "Gear","path": "1/2/3"},{"uid": "NA==","name": "Bags","path": "1/2/3/4"}],"price_range": {"minimum_price": {"final_price": {"currency": "USD","value": 34}},"maximum_price": {"final_price": {"currency": "USD","value": 34}}},"stock_status": "IN_STOCK"}]}}}