MCPcopy
hub / github.com/sequelize/sequelize / customFn

Function customFn

test/integration/instance.validations.test.js:376–382  ·  view source on GitHub ↗
(val, next)

Source from the content-addressed store, hash-verified

374 type: Sequelize.STRING,
375 validate: {
376 customFn(val, next) {
377 if (val !== '2') {
378 next("name should equal '2'");
379 } else {
380 next();
381 }
382 }
383 }
384 }
385 });

Callers

nothing calls this directly

Calls 1

findAllMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…