Sequalize js how to make multiple like condition with OR operation

5 views
Skip to first unread message

Christos Ch

unread,
May 17, 2020, 4:30:44 PM5/17/20
to Sequelize
I have an array of words which I want to search into a database with Sequalize
['orange', 'apple', 'apricot']

How can I achieve a query like this

SELECT * FROM Table WHERE text LIKE '%orange%' OR text LIKE '%apple%' OR text LIKE '%apricot%'

with Sequalize?
Reply all
Reply to author
Forward
0 new messages