Alokai
You are reading the documentation for SDK v2, which is no longer the latest version. Switch to current

updateCartMutation

Portion of the GraphQL query used in the updateCart API endpoint

updateCartMutation = "\n  mutation updateCart(
	\n    $id: String!,\n    $version: Long!,\n    $actions: [MyCartUpdateAction!]!,\n    $locale: Locale!,\n    $acceptLanguage: [Locale!],\n    $currency: Currency!,\n    $storeKey: KeyReferenceInput\n  
) {\n    cart: updateMyCart(id: $id,
	version: $version,
	actions: $actions,
	storeKey: $storeKey) {\n      ...DefaultCart\n    }\n  }\n"