* 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)
| 494 | * @returns {boolean} Returns true if model is already defined, otherwise false |
| 495 | */ |
| 496 | isDefined(modelName) { |
| 497 | return !!this.modelManager.models.find(model => model.name === modelName); |
| 498 | } |
| 499 | |
| 500 | /** |
| 501 | * Execute a query on the DB, optionally bypassing all the Sequelize goodness. |
no outgoing calls
no test coverage detected