[IMPLEMENTED] Possibility to make a Field unique


#1

make some fields as unique


#2

a big plus one from me as well…

Our use case:
We are defining landing pages as a schema and each landing page has a slug. We require the slug to be unique otherwise there will be 2 landing pages for the same slug.

Suggestion:
A checkbox to mark a field as unique in the schema

Workaround:
Diligence and discipline :yum:


#3

Nice addition for me also !


#4

It sounds useful and I was thinking about an implementation. Right now it is no option to implement it on the database level, because it would create thousand of indices in the database. But a simple check before a content is created or updated is definitely useful. It does not offer the same level of consistency but I think it should be enough for most use cases.


#5

Implemented and deployed, but as I said as a validator and restricted to non-localized and non-nested fields.


#6