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

Advice on importing data into Sanity schema, user struggled with documentation but eventually figured it out.

2 replies
Last updated: May 13, 2020
Any advice on data imports? I have an array of objects (280+ objects) that need mapped into a sanity schema—the fields almost match, and the data is very regular—so transforming it to match the sanity required terminology wouldn't be too difficult.
I saw the docs here
https://www.sanity.io/docs/importing-data — but not really following, to be honest
May 13, 2020, 7:03 PM
Could you elaborate what you need help with? Any particular thing you don't understand?
May 13, 2020, 7:26 PM
I actually just figured this out—I am not 100% sure how it worked, but I just copied the format of the docs example, and followed the errors to format it until sanity was happy.
Thank you though!
May 13, 2020, 7:35 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?