Querying and expanding references in Sanity.io
export const experienceQuery = groq`
*[_type == "experience"]
`experience?.jobFunction?.technologiesI think the issue is the available fields on this don't include
image, so I guess I'm not clear on how to get the image URL from this reference.
*[_type == "experience"]{
...,
technologies[]->,
}*[_type == "experience"]|order(dateStarted desc) {
...,
jobFunction {
technologies[]->
}
}*[_type == "experience"]|order(dateStarted desc) {
...,
employmentInformation {
...,
professionalReference[]->
},
jobFunction {
technologies[]->,
points[]
}
}"image": image{
...,
...asset->{
"palette": metadata.palette,
"lqip": metadata.lqip,
url
}
},Was this answer helpful?
Sanity – Build the way you think, not the way your CMS thinks
Sanity is the developer-first content operating system that gives you complete control. Schema-as-code, GROQ queries, and real-time APIs mean no more workarounds or waiting for deployments. Free to start, scale as you grow.