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
This examples states that the insert will fail if it has constraints on a field. I don't see where in the documentation that explains how to add constrains as well as setting the types for the field.
// If there is a unique constraint on field 'a', this will fail db.insert([{ a: 5 }, { a: 42 }, { a: 5 }], function (err) { // err is a 'uniqueViolated' error // The database was not modified });
The text was updated successfully, but these errors were encountered:
This examples states that the insert will fail if it has constraints on a field. I don't see where in the documentation that explains how to add constrains as well as setting the types for the field.
// If there is a unique constraint on field 'a', this will fail db.insert([{ a: 5 }, { a: 42 }, { a: 5 }], function (err) { // err is a 'uniqueViolated' error // The database was not modified });
The text was updated successfully, but these errors were encountered: