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 the way you think, not the way your CMS thinks

Sanity is the developer-first content operating system that gives you complete control. Schema-as-code, GROQ queries, and real-time APIs mean no more workarounds or waiting for deployments. Free to start, scale as you grow.

Was this answer helpful?