How to Query a Type with an Array to Deref One Nested Type

2 replies
Last updated: Aug 14, 2020
If I have a document with a type called "page" and it has an array named "info" that contains 2 types: person (ref) and customField (document). How can I query page and ensure that person is deref but customField are not
Aug 14, 2020, 6:27 PM
The last example there should be what you need
Aug 14, 2020, 8:29 PM

Sanity – Build the way you think, not the way your CMS thinks

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.

Was this answer helpful?