You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think it's common that if we have a model called User, an email is required(not empty) when creating a new User Or we would stop the creating(like throw an error).
Is there a rule that can archieve this, like Index definition inside Nedb:
Model.ensureIndex({ fieldName: 'email', unique: true });
Model.ensureField({ fieldName: 'email', required: true }); //Is there a definition like this?
The text was updated successfully, but these errors were encountered:
I think it's common that if we have a model called User, an email is required(not empty) when creating a new User Or we would stop the creating(like throw an error).
Is there a rule that can archieve this, like Index definition inside Nedb:
The text was updated successfully, but these errors were encountered: