Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

op in sequelize

//First method
// selecting authorityId :12 or 13
model.findAll({
  where: {
    [Op.or]: [
      { authorId: 12 },
      { authorId: 13 }
    ]
  }
});
 
PREVIOUS NEXT
Tagged: #op #sequelize
ADD COMMENT
Topic
Name
3+6 =