Open nazo6 opened 10 months ago
Hmm, I suspect that the second contains
is overwriting the first one. What you're trying to do may not actually be possible at the moment, I think the proper implementation of and
would be something like this:
client
.test()
.find_many(vec![and![
vec![test::title::contains("abc".to_string())]
vec![test::title::contains("def".to_string())],
]])
Also note that I used and!
which lets you combine the and
and vec!
.
Problem
I have data like this in
Test
tableAnd there is code to find data which contains "abc" and "def".
I assumed that this code shows
But actual output was below.
It seems like only last condition in
and
is applied. Also, this works as expected if whereparams are for different rowsVersion