You are reading the documentation for SDK v2, which is no longer the latest version. Switch to current
createCartMutation
Portion of the GraphQL query used in the createCart API endpoint
createCartMutation = "\n mutation createCart(
$draft: MyCartDraft!,
$locale: Locale!,
$acceptLanguage: [Locale!],
$currency: Currency!,
$storeKey: KeyReferenceInput
) {\n cart: createMyCart(draft: $draft,
storeKey: $storeKey) {\n ...DefaultCart\n }\n }\n"