Hi Sebastian,
I want to make a string field unique on the schema side. How can I achieve this? I set “isUnique”: true and synchronized, but it was not work.
Can you help me with this ?
Thanks
Hi Sebastian,
I want to make a string field unique on the schema side. How can I achieve this? I set “isUnique”: true and synchronized, but it was not work.
Can you help me with this ?
Thanks
What exactly did not happen?
I noticed that it does not work in fields with the localization option active.
sorry for taking your time
Yes, exactly. I think it is mentioned in the field docs.
The unique validator is just a validator, not a database constraint. Which means that it checks if there is another content item with the same field. It can become potentially expensive if you have configured a lot of languages. Therefore it is disable for localized fields.