Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Error fetching shipping rates with graphql client

Error fetching shipping rates with graphql client

Mumeen
Visitor
2 0 0

Hello,

I am getting error trying to fetch shipping rates from checkout using this 

`let shippingRates = await graphqlClient.query({

data: `query { node(id: "gid://shopify/Checkout/7e9b3511d30997c531a6413bc273885b?key=cc8d8812f127eaf51b3ac2468d467984") { ... on Checkout { id webUrl availableShippingRates { ready shippingRates { handle priceV2 { amount } title } } } } }`,
});`
Attached is the error I am getting

 

Screenshot from 2022-11-27 08-56-00.png

Reply 1 (1)

Mumeen
Visitor
2 0 0

I have got it solved