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

Method toString

lib/error/validator.js:41–43  ·  view source on GitHub ↗

* toString helper * TODO remove? This defaults to `${this.name}: ${this.message}` * @api private

()

Source from the content-addressed store, hash-verified

39 * @api private
40 */
41 toString() {
42 return this.message;
43 }
44
45 /**
46 * Ensure `name` and `message` show up in toJSON output re: gh-9296

Callers 15

model.jsFile · 0.45
cast.jsFile · 0.45
schema.jsFile · 0.45
utils.jsFile · 0.45
_updateFunction · 0.45
query.jsFile · 0.45
getMethod · 0.45
setMethod · 0.45
deleteMethod · 0.45
objectid.jsFile · 0.45
toStringFunction · 0.45
addToSetFunction · 0.45

Calls

no outgoing calls

Tested by 5

compareBuffersFunction · 0.36
writeFunction · 0.36
getPopulatedLocationIdsFunction · 0.36
getFunction · 0.36
createWithPopulatedDocFunction · 0.36