MCPcopy Create free account
hub / github.com/Automattic/mongoose / valid

Function valid

test/types.buffer.test.js:15–17  ·  view source on GitHub ↗
(v)

Source from the content-addressed store, hash-verified

13const Schema = mongoose.Schema;
14
15function valid(v) {
16 return !v || v.length > 10;
17}
18
19// Dont put indexed models on the default connection, it
20// breaks index.test.js tests on a "pure" default conn.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected