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

Understanding how to create inline documents with reference fields in Slack thread

4 replies
Last updated: Jun 19, 2023
Still getting to grips with everything, presently trying to understand creating documents inline.I've a got reference field for a 'teamMember', and created and published an entry inline, but the new 'teamMember' doesn't show up under my 'Team Members' documents?
Jun 19, 2023, 8:36 PM
Would you mind showing a snippet from your schema where you’re creating the reference?
Jun 19, 2023, 8:38 PM
Hey Geoff, schoolboy error, I had the 'teamMembers' set to type 'array' rather than 'reference' 😏
Jun 19, 2023, 8:44 PM
All good! Glad you got it worked out! 😀
Jun 19, 2023, 8:48 PM
Thanks for jumping to my aide so quick 🙌
Jun 19, 2023, 9:32 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?