How AI is powering better personalization in e-commerce [with Vercel]. Sign up now

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

2 repliesLast 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?
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)
thank you!!!

Was this answer helpful?

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.

Related contributions