👀 Our most exciting product launch yet 🚀 Join us May 8th for Sanity Connect

How to Create an Array With Three Objects Containing Title and Body

2 replies
Last updated: Mar 7, 2021
Hi! I'm having trouble creating an array with three objects, all containing a title and body. Don't know what I'm doing wrong... Something like this (Not correct code, I know. But just to get the idea of what I'm trying to achieve...)
Mar 7, 2021, 3:32 PM
My bet is that
blockContent
 is an array, and the studio can't deal with arrays in arrays right now. The solution is to wrap the
blockContent
type in an object.
Mar 7, 2021, 3:38 PM
Thank you!
Mar 7, 2021, 6:10 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?