Schema Documentation

addToCart

Description

The addToCart mutation

Response

Returns an AddToCartPayload

Arguments
NameDescription
input - AddToCartInput! Input for the addToCart mutation

Example

Query
mutation addToCart($input: AddToCartInput!){  addToCart(input: $input){    cart {      ...CartFragment    }cartItem {      ...CartItemFragment    }clientMutationId  }}
Variables
{"input":AddToCartInput}
Response
{"data":{"addToCart":{"cart":Cart,"cartItem":CartItem,"clientMutationId":"xyz789"}}}