Answers for "scope with sequelize.define"

0

scope with sequelize.define

module.export = function(Sequelize, DataTypes){
  var User = sequelize.define("User", {...}, {
    scopes: {
      complete: {
        include: [{
          model: Sequelize.models.Task
        }]
      }
    }
  });
}
Posted by: Guest on August-01-2021
-1

define scope with model init sequelize cli example

define scope with sequelize define model
Posted by: Guest on August-02-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language