* Checks whether a model with the given name is defined * * @param {string} modelName The name of a model defined with Sequelize.define * * @returns {boolean} Returns true if model is already defined, otherwise false
(modelName)
| 483 | * @returns {boolean} Returns true if model is already defined, otherwise false |
| 484 | */ |
| 485 | isDefined(modelName) { |
| 486 | return !!this.modelManager.models.find(model => model.name === modelName); |
| 487 | } |
| 488 | |
| 489 | /** |
| 490 | * Execute a query on the DB, optionally bypassing all the Sequelize goodness. |
no outgoing calls
no test coverage detected