Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

op in sequelize

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