How to get the title of a referenced document while keeping all other data in GROQ.
Last updated: Jan 28, 2022
When using GROQ, how can I get the title of the document I'm referencing while keep all the other data I'm requesting?I have a list of images that have a few key:value pairs that I'll need, then there is one called
that has a reference to
each image can be tagged with many collections. I want to keep the structure I have and just convert the reference to the actual collection title I'm sure this is easier than I'm making it, but I can't figure out how to structure my query. I'll post current query along with a screenshot of the data I'm request in the comments