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

Array of References as Field of an Object - How to Preview the Content Inside the Reference

2 replies
Last updated: Aug 14, 2020
Hi guys, I have a question, I have an array of references as field of an object, and I want to preview the content inside the reference, is it possible? Beacause with the prepare method in the preview I can only see the _key, _ref and the _type fields, thanks in advance.
Aug 14, 2020, 8:53 AM
Yes you should be able to do that. Have you had a look at this example? https://www.sanity.io/docs/previews-list-views#preview-using-fields-from-referenced-documents-dcbbdb0ec3aa
Aug 14, 2020, 9:04 AM
Thank you very much!
Aug 14, 2020, 9:10 AM

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?