I have three schemas docTopics
=> subTopics
=> article
that are references of each other.
I wanted to write a query for docTopics
to return all the subTopics
references to docTopics
export const queryRefrence = groq`
{
"topics": *[_type == "subTopics"] {
_id,
topic,
title,
id,
"topics": docsTopics[] -> {title}
}
}`