✨Discover storytelling in the AI age with Pixar's Matthew Luhn at Sanity Connect, May 8th—register now

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
 is an array, and the studio can't deal with arrays in arrays right now. The solution is to wrap the
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?