Shopify Variants in Sanity is coming in as a reference and not showing the values

Viewed 12

I've hooked up Sanity into my Sanity / Next JS app. All the Shopify data is coming in, however the variants is showing as such:

variants :[{
  "_key":"91b61be8-23a0-5af0-858c-de6923e63d2a"
  "_ref":"shopifyProductVariant-40599674519652"
  "_type":"reference"
  "_weak":true
  }]

Rather than showing all the values for the variants (i.e. price, inventory, etc.) it is only providing a _ref to the product ID.

I used the Sanity Connect tool to link up my Sanity app with Shopify. Maybe there is an issue with the Sanity Connect tool? I don't know.

Also, I'm using the HULL Sanity template. Not sure if this piece of information helps.

It may be worth noting that when I use postman, the variants data is good, however this is not the case inside the app.

0 Answers
Related