๐Ÿ‘€ See Sanity in action: Watch product demo now โ†’

Error when Removing Document Type from the Schema

6 replies
Last updated: May 1, 2020
I had a type A that referenced type B. I deleted the only type A document I had created, and now want to remove type B from the schema but Iโ€™m getting an error.
May 1, 2020, 7:04 PM
What kind of error are you getting?
May 1, 2020, 7:10 PM
Ah, nevermind, I figured it out. Was updating the schema before the schemaType. Oops ๐Ÿ™‚
May 1, 2020, 7:10 PM
had to remove the reference in the schemaType ๐Ÿ™‚
May 1, 2020, 7:10 PM
Aight! To be clear: deletion of documents are instant
May 1, 2020, 7:11 PM
Oh, I saw a little toast message that I didnโ€™t read thoroughly that said something about revisions.
May 1, 2020, 7:11 PM
You can recover them in the studio only when you are in the same screen, because the studio has the document in memory ๐Ÿ™‚
May 1, 2020, 7:11 PM

Sanity.io โ€“ build remarkable experiences at scale

Sanity is a customizable solution that treats content as data to power your digital business. Free to get started, and pay-as-you-go on all plans.

Categorized in