πŸ‘€ See Sanity in action: Watch product demo now β†’

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.io – build remarkable experiences at scale

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

Categorized in