How to use the or function from sequelize
Find comprehensive JavaScript sequelize.or code examples handpicked from public code repositorys.
10 11 12 13 14 15 16 17 18 19
var keyword = req.query.keyword || ''; keyword = keyword.trim(); if(keyword != ''){ filter = Sequelize.or( { AdminMemberID: { $like : '%'+keyword+'%'} }, { AdminMemberEmail: { $like : '%'+keyword+'%'} }, { Name1: { $like : '%'+keyword+'%'} }, { AdminGroup: { $like : '%'+keyword+'%'} }
39
27
15
+ 9 other calls in file
341 342 343 344 345 346 347 348 349 350
input.TCHAT_REQUEST_Status = 'Request'; input.TCHAT_REQUEST_Created_On = new Date().toISOString().slice(0, 19).replace('T', ' '); // input.TCHAT_REQUEST_Mobile_dateTime=req.body.TCHAT_REQUEST_Mobile_dateTime Chatrequest.findAll({ where: Sequelize.or( Sequelize.and( { TCHAT_REQUEST_Sender: input.TCHAT_REQUEST_Sender }, { TCHAT_REQUEST_Receiver: input.TCHAT_REQUEST_Receiver }, { TCHAT_REQUEST_IS_Delete: false }
0
1
1
+ 3 other calls in file
sequelize.col is the most popular function in sequelize (1002 examples)