Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

joins in mysql use sequelize

User.findAll({
  include: [{
    model: Tool,
    as: 'Instruments',
    include: [{
      model: Teacher,
      where: {
        school: "Woodstock Music School"
      },
      required: false
    }]
  }]
});
Source by sequelize.org #
 
PREVIOUS NEXT
Tagged: #joins #mysql #sequelize
ADD COMMENT
Topic
Name
9+2 =