Deleting a type A document caused an error when trying to remove type B from the schema.

10 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
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
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
What kind of error are you getting?
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
Ah, nevermind, I figured it out. Was updating the schema before the schemaType. Oops ๐Ÿ™‚
May 1, 2020, 7:10 PM

Sanityโ€“ build remarkable experiences at scale

The Sanity Composable Content Cloud is the 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?

Categorized in