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 the way you think, not the way your CMS thinks

Sanity is the developer-first content operating system that gives you complete control. Schema-as-code, GROQ queries, and real-time APIs mean no more workarounds or waiting for deployments. Free to start, scale as you grow.

Was this answer helpful?