Unlock seamless workflows and faster delivery with our latest releases - Join the deep dive

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 remarkable experiences at scale

Sanity is a modern headless CMS that treats content as data to power your digital business. Free to get started, and pay-as-you-go on all plans.

Was this answer helpful?