From 959b0718783a0cac357b141489a988add41fd859 Mon Sep 17 00:00:00 2001 From: Remco Lakens Date: Wed, 19 Jul 2023 11:31:40 +0200 Subject: [PATCH 1/2] fix: attribute input --- .../hydrogen/src/cart/queries/cartAttributesUpdateDefault.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/hydrogen/src/cart/queries/cartAttributesUpdateDefault.ts b/packages/hydrogen/src/cart/queries/cartAttributesUpdateDefault.ts index b528d5245e..820212d305 100644 --- a/packages/hydrogen/src/cart/queries/cartAttributesUpdateDefault.ts +++ b/packages/hydrogen/src/cart/queries/cartAttributesUpdateDefault.ts @@ -32,7 +32,7 @@ export const CART_ATTRIBUTES_UPDATE_MUTATION = ( ) => `#graphql mutation cartAttributesUpdate( $cartId: ID! - $attributes: [CartAttributeInput!]! + $attributes: [AttributeInput!]! ) { cartAttributesUpdate(cartId: $cartId, attributes: $attributes) { cart { From c90b1c1d1c1be4c283a0381e0697413c99d253aa Mon Sep 17 00:00:00 2001 From: Remco Lakens Date: Thu, 20 Jul 2023 09:11:43 +0200 Subject: [PATCH 2/2] chore: add new changeset --- .changeset/small-falcons-peel.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/small-falcons-peel.md diff --git a/.changeset/small-falcons-peel.md b/.changeset/small-falcons-peel.md new file mode 100644 index 0000000000..0371b6ec02 --- /dev/null +++ b/.changeset/small-falcons-peel.md @@ -0,0 +1,5 @@ +--- +'@shopify/hydrogen': patch +--- + +fix(cart): corrected the `$attributes` type in `CART_ATTRIBUTES_UPDATE_MUTATION` to match the expected one