cartAttributesUpdate mutation

Updates the attributes on a cart.

Interactive example

This is an example mutation query. Use the embedded interactive tool below to edit the query.

Hint: use Ctrl + Space for autocompleting fields.


Arguments

Argument Description
attributes ( [AttributeInput!]! ) required

An array of key-value pairs that contains additional information about the cart.

cartId ( ID! ) required

The ID of the cart.

AttributeInput fields

  • key (String!) Required

    Key or name of the attribute.

  • value (String!) Required

    Value of the attribute.

Return fields

  • cart (Cart)

    The updated cart.

  • userErrors ([CartUserError!]!)

    The list of errors that occurred from executing the mutation.

Updates the attributes on a cart.

Interactive example

This is an example mutation query. Use the embedded interactive tool below to edit the query.

Hint: use Ctrl + Space for autocompleting fields.


Arguments

Argument Description
attributes ( [AttributeInput!]! ) required

An array of key-value pairs that contains additional information about the cart.

cartId ( ID! ) required

The ID of the cart.

AttributeInput fields

  • key (String!) Required

    Key or name of the attribute.

  • value (String!) Required

    Value of the attribute.

Return fields

  • cart (Cart)

    The updated cart.

  • userErrors ([CartUserError!]!)

    The list of errors that occurred from executing the mutation.