MCPcopy
hub / github.com/sequelize/sequelize / toJSON

Method toJSON

lib/model.js:4431–4437  ·  lib/model.js::Model.toJSON

* Convert the instance to a JSON representation. * Proxies to calling `get` with no keys. * This means get all values gotten from the DB, and apply all custom getters. * * @see * {@link Model#get} * * @returns {object}

()

Source from the content-addressed store, hash-verified

4429 * @returns {object}
4430 */
4431 toJSON() {
4432 return _.cloneDeep(
4433 this.get({
4434 plain: true
4435 })
4436 );
4437 }
4438
4439 /**
4440 * Creates a 1:m association between this (the source) and the provided target.

Callers 1

sscce.jsFile · 0.45

Calls 1

getMethod · 0.95

Tested by

no test coverage detected