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

Method constructor

test/driver.test.js:41–43  ·  view source on GitHub ↗
(key, options)

Source from the content-addressed store, hash-verified

39 SchemaTypes: {
40 DateString: class DateString extends mongoose.SchemaType {
41 constructor(key, options) {
42 super(key, options, 'DateString');
43 }
44
45 cast(val) {
46 if (typeof val !== 'string' || !/^\d{4}-\d{2}-\d{2}$/.test(val)) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected