Schema Documentation

addCartItems

Description

The addCartItems mutation

Response

Returns an AddCartItemsPayload

Arguments
NameDescription
input - AddCartItemsInput! Input for the addCartItems mutation

Example

Query
mutation addCartItems($input: AddCartItemsInput!){  addCartItems(input: $input){    added {      ...CartItemFragment    }cart {      ...CartFragment    }cartErrors {      ...CartItemErrorFragment    }clientMutationId  }}
Variables
{"input":AddCartItemsInput}
Response
{"data":{"addCartItems":{"added":[CartItem],"cart":Cart,"cartErrors":[CartItemError],"clientMutationId":"abc123"}}}