MCPcopy
hub / github.com/Automattic/mongoose / get

Function get

lib/model.js:4367–4378  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4365Object.defineProperty(Model, '~standard', {
4366 configurable: true,
4367 get() {
4368 return {
4369 version: 1,
4370 vendor: 'mongoose',
4371 validate: (value, options) => {
4372 return this.validate(value, options?.libraryOptions).then(
4373 value => ({ value }),
4374 error => ({ issues: convertErrorToStandardSchemaIssues(error) })
4375 );
4376 }
4377 };
4378 }
4379});
4380
4381/**

Callers 15

analyzePathFunction · 0.70
model.jsFile · 0.70
cast.jsFile · 0.70
connection.jsFile · 0.70
aliasFieldsFunction · 0.70
schema.jsFile · 0.70
discriminator.jsFile · 0.50
applyMethods.jsFile · 0.50
assignVals.jsFile · 0.50
searchFunction · 0.50

Calls 1

validateMethod · 0.80

Tested by

no test coverage detected