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

Method constructor

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

Source from the content-addressed store, hash-verified

14868 it('supports global transforms per schematype (gh-15084)', async function() {
14869 class SchemaCustomType extends mongoose.SchemaType {
14870 constructor(key, options) {
14871 super(key, options, 'CustomType');
14872 }
14873
14874 cast(value) {
14875 if (value === null) return null;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected