Schema Documentation

cartItem

Description

The cart object

Response

Returns a CartItem

Arguments
NameDescription
key - ID!

Example

Query
query cartItem($key: ID!){  cartItem(key: $key){    extraData {      ...MetaDataFragment    }idkeyproduct {      ...CartItemToProductConnectionEdgeFragment    }quantitysubtotalsubtotalTaxtaxtotalvariation {      ...CartItemToProductVariationConnectionEdgeFragment    }  }}
Variables
{"key":"4"}
Response
{"data":{"cartItem":{"extraData":[MetaData],"id":"4","key":"4","product":CartItemToProductConnectionEdge,"quantity":987,"subtotal":"abc123","subtotalTax":"abc123","tax":"abc123","total":"abc123","variation":CartItemToProductVariationConnectionEdge}}}