πŸ‘€ Our most exciting product launch yet πŸš€ Join us May 8th for Sanity Connect

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?