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

Method toJSON

lib/error/validator.js:49–51  ·  view source on GitHub ↗

* Ensure `name` and `message` show up in toJSON output re: gh-9296 * @api private

()

Source from the content-addressed store, hash-verified

47 */
48
49 toJSON() {
50 return Object.assign({ name: this.name, message: this.message }, this);
51 }
52}
53
54

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected