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

Method constructor

test/document.test.js:15259–15261  ·  view source on GitHub ↗
(key, options)

Source from the content-addressed store, hash-verified

15257 it('supports global transforms per schematype (gh-15084)', async function() {
15258 class SchemaCustomType extends mongoose.SchemaType {
15259 constructor(key, options) {
15260 super(key, options, 'CustomType');
15261 }
15262
15263 cast(value) {
15264 if (value === null) return null;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected