Querying a "page" type with an array of "person" and "customField" types in Sanity.io.

4 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
The last example there should be what you need
Aug 14, 2020, 8:29 PM

Sanity– build remarkable experiences at scale

The Sanity Composable Content Cloud is the 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?