For discussing the development and usage of Checkout UI extensions, post-purchase extensions, web pixels, Customer Accounts UI extensions, and POS UI extensions
I was looking for assistance in a Shopify functions query. I was told we could no longer use Script editor, and I am in the process of migrating to the new functions platform.
One of the things we do when selecting a shipping line item is look at the customer's tags. This was straightforward in the Shopify Script editor.
When I use the following graphql query:
query RunInput { cart { buyerIdentity { customer { id } purchasingCompany { company { id } } } deliveryGroups { deliveryOptions { handle title } } } }
I get the following error:
Cannot query field "tags" on type "Customer".
When reading the docs this should be a valid query:
https://shopify.dev/docs/api/storefront/2024-04/objects/Cart
Please advise,
Justin