🔮 Sanity Create is here. Writing is reinvented. Try now, no developer setup

Is the 'Slug' Schema Type Auto Set to be Always Unique?

2 replies
Last updated: Jun 4, 2020
Hello, I have a pretty basic question but i though i would confirm than assume this to be true... Is the 'slug' schema type auto set to be always unique or do I have to ad the custom 'isUnique" to it?
Jun 1, 2020, 3:38 AM
Yes, you are right.(I guess that the isUnique function is for cases where you want to modify the default checker or when your schema is too complex for the default checker)
Jun 1, 2020, 6:37 AM
thank you!!!
Jun 4, 2020, 3:50 AM

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?