Trouble fetching image URL in Sanity.io

1 replies
Last updated: Aug 31, 2020
Hello there, I am new to sanity and I am a bit stuck on fetching image-url for uploaded images.This is what is returned in asset for the image:

"asset":{
"_ref":"image-978242d396a40e53b4ecefb3056154e218057e8c-771x358-svg"
"_type":"reference"
}
According to the
documentation there should be a propery called "imageUrl" in assets. What am I doing wrong? How do Iretrieve the full image-URL?
Aug 31, 2020, 10:09 AM
Solved it witht the image-url builder ๐Ÿ‘
Aug 31, 2020, 12:10 PM

Sanityโ€“ build remarkable experiences at scale

The Sanity Composable Content Cloud is the headless CMS that treats content as data to power your digital business. Free to get started, and pay-as-you-go on all plans.

Was this answer helpful?