Relative Content

Tag Archive for node.jstypescriptnext.jssanitygroq

Can’t get access to referenced objects / Array using GROQ query for Sanity.IO

Here is my schema setup:
How do I query Groq to return the navItems and the navItemUrls within one query to use in a map function?
The only thing I can return is the top-level properties of personalnav when performing the GROQ query. I need to be able to use all of these properties to populate the dynamic data to each navigation button and map over them dynamic to leverage a server component in nextjs.