GitHub

ShopifyCartWarning

Type

import { ShopifyCartWarning } from '@daffodil/driver/shopify'

A non-blocking issue that occurred during a cart mutation. Unlike errors, warnings don't prevent the mutation from completing but indicate potential problems that may affect the buyer's experience.

Each warning includes a code identifying the issue type, a human-readable message, and a target ID pointing to the affected resource.

interface ShopifyCartWarning {
  __typename: "CartWarning"
  code: ShopifyCartWarningCode
  message: string
  target: string
}

Properties

__typename
"CartWarning"
code
ShopifyCartWarningCode

The code of the warning.

message
string

The message text of the warning.

target
string

The target of the warning.