0

I installed Magento 2.4.2

According to Magento GraphQL DevDocs updateCartItems mutation cart_item_id is Deprecated. Use cart_item_uid instead. The unique ID assigned when a customer places an item in the cart.

I can not get cart item's uid from customerCart and cart query.

Please help me.

enter image description here

3
  • Please check example usage code: devdocs.magento.com/guides/v2.4/graphql/queries/…
    – Amit Saini
    Mar 13, 2021 at 14:54
  • As per the example code, there are not defined "uid" parameter in the request. There are only defined "id" then get "uid" in response.
    – Amit Saini
    Mar 13, 2021 at 14:55
  • Yes but i can not get uid from response. I try this but not working. Please give me best solution for it. How to get uid. from cart query. I need this uid for other cart operation.
    – Msquare
    Mar 15, 2021 at 4:23

1 Answer 1

0

Check that your backend magento installation is the latest 2.4.2 or newer version, uuid were added recently on that release to replace number ids

check release notes: https://devdocs.magento.com/guides/v2.4/release-notes/open-source-2-4-2.html#graphql

1
  • Yes i installed and use magento 2.4.2 but i can't get uid. Please help me.
    – Msquare
    Apr 29, 2021 at 9:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.