Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/sequelize/sequelize
/ customFn
Function
customFn
test/unit/model/validation.test.js:455–461 ·
view source on GitHub ↗
(val, next)
Source
from the content-addressed store, hash-verified
453
type
: Sequelize.INTEGER,
454
validate: {
455
customFn(val, next) {
456
if
(val < 0) {
457
next(
'age must be greater or equal zero'
);
458
}
else
{
459
next();
460
}
461
}
462
}
463
},
464
name: Sequelize.STRING
Callers
nothing calls this directly
Calls
1
get
Method · 0.65
Tested by
no test coverage detected