
Grab your gear: The official Sanity swag store
Read Grab your gear: The official Sanity swag storeGlad you figured it out! For anyone else who comes across this thread with a similar issue, the solution is to fix the GROQ query syntax. The correct query should be:
*[_type == "homepage"] {
...,
"home_testimonials": home_testimonials[]->{
content,
jobTitle,
author
}
}The key differences:
home_testimonials[]-> (the actual field name from your schema, not "testimonial")-> operator dereferences the reference to get the actual testimonial documenttestimonial-> insideThis will expand each reference in the home_testimonials array and return the actual content, jobTitle, and author fields from each referenced testimonial document.
You can learn more about dereferencing in GROQ in the reference type documentation and the GROQ query cheat sheet.
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.
Content operations
Content backend


The only platform powering content operations
By Industry


Tecovas strengthens their customer connections
Build and Share

Grab your gear: The official Sanity swag store
Read Grab your gear: The official Sanity swag store