I have a pages collection.
Inside that collection I have a field called slug, which is a String and unique, but I want this field also to be empty to specify which page should be under the / directory, being the landing page.
The problem is that if I specify that field to be nullable causes me to be able to give many pages the NULL value even though that field is specified as unique.
But If I configure that field to be non-nullable the webapp does not allow me to save the item if the field is empty.
My expected behaviour wold be that in this case not filling out that field would make it put an empty string and accept it.
But it is not handled like this.
Suggestion: Make non-nullable strings accept empty values which then would have in terms of a string an empty string?
Or is this intended behaviour?