83
rated 0 times
[
89]
[
6]
/ answers: 1 / hits: 23491
/ 9 Years ago, sun, december 13, 2015, 12:00:00
I have a database of articles with several columns and would like to be able to search both title
and description
.
Currently, I have:
Article.findAll({
where: {
title: { like: '%' + searchQuery + '%' }
}
});
How can I also search the description as well?
I've read through the sequelize documentation, even in the Complex filtering / OR / NOT queries
section, but the examples only seem to explain searching in one column.
More From » sql