How to Filter on Object Keys in a Nested Object in Groq-Req?
*[_type == "second_hand"]{
title,
carousel_list[]-> {
carousel_image,
carousel_item_name,
est_volume,
price,
}
}*[_type == "second_hand"]{
title,
carousel_list[]-> {
carousel_image,
carousel_item_name,
est_volume,
price,
est_volume {
en
}
}
}*[_type == "second_hand"]{
title,
carousel_list[]-> {
carousel_image,
carousel_item_name,
est_volume {
"est_vol": $lang,
},
price,
}
}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.