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