Answer the question
In order to leave comments, you need to log in
Sails JS: what is the unique validator for?
I sent the form to sails, and the data is duplicated in MongoDB, even though I set the unique property. Either I did not understand what it was for, or I did not write something correctly.
userName: {
type: 'string',
unique: true,
required: true
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question