We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 54218ca commit 0a3f466Copy full SHA for 0a3f466
README.md
@@ -95,7 +95,7 @@ const object = new model({});
95
object.save(function (err, doc) {
96
if (err) {
97
const error = mongooseErrorHandler(err, {
98
- path: {
+ paths: {
99
name: { origin: true },
100
nameX: { origin: true, kind: 'maxlength' },
101
}
@@ -127,7 +127,7 @@ const object = new model({});
127
128
129
130
131
name: { message: 'name is required' },
132
nameX: { message: 'name length must be less than or equal to {maxlength} characters long', kind: 'maxlength' },
133
0 commit comments