I’m assuming maybe I’m grabbing the wrong _id here – as I want to compare the _id from the image/asset and not from the ‘singleton-home’ document. Is what I’m trying to do possible / Can someone help me with this?:)
I realize that I may have worded my question a bit poorly – let me try to rephrase! In my ‘singleton-home’ document I have an array of images. When querying for this array I would like to also look for other documents that use the same images/assets, and get the slug for those pages along with the images themselves.
I could of course restructure the studio to make it work, but just wonder if there is a quick and slick groq-way of doing it without changing anything in the studio:-)
I see now. I wasn't sure what you meant by parent. Hmm that is a tricky one. If it is statically generated like with next js you could just run a 2nd query and store the reference id in a variable a combine them into the same object. I can't see a way to do it without knowing the ref ID ahead of time.