Is there a way to specify that a field has to be unique with JayData (same as SQL)?
For example:
$data.Entity.extend("Test", {
Id: { type: "int", key: true, computed: true },
Name: { type: "string", required: true, unique: true, maxLength: 200 }
});
If the keyword doesn't exist, how to do it? Actually, I don't want an element to be added if it already exists.