I have searched for this for quite some time but could not get a way to have a where clause with or condition. For example if I have a collection Cars
and I try to do the following:
Cars.where({
model: 1998,
color: 'Black',
make: 'Honda'
})
So what the above will do is search for a car
whose model
is 1998
AND color
is Black
AND make
is Honda
.
But I require a way to get cars
which have either of the three conditions true.
I know that this an old post, but maybe this could be useful to somebody.
I had a similar problem, but a little simplier, this how I solved it
I think this could be adapted to solve the problem proposed like this:
Hope this help someone!