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

Method constructor

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

Source from the content-addressed store, hash-verified

14767 it('supports global transforms per schematype (gh-15084)', async function() {
14768 class SchemaCustomType extends mongoose.SchemaType {
14769 constructor(key, options) {
14770 super(key, options, 'CustomType');
14771 }
14772
14773 cast(value) {
14774 if (value === null) return null;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected