Skip to Content

CartCreatePayload

Payload returned by the cartCreate mutation

Type Definition

type CartCreatePayload { cart: Cart userErrors: [UserError]! }

Fields

FieldTypeDescription
cartCartThe created cart
userErrors[UserError]!List of errors that occurred during cart creation

Relationships

The CartCreatePayload type is returned by the cartCreate mutation. It contains a reference to the newly created Cart object and a list of UserError objects that describe any validation errors or issues encountered during the cart creation process.

Example

mutation { cartCreate { cart { id checkoutUrl } userErrors { field message } } }

Implements

This type does not implement any interfaces.