I have a query that require to use the "or" |
operator :
Mymodel.query.filter((Mymodel.a== 'b') | (Mymodel.b == 'c'))
That works fine. However, I want my conditions to be put in an array of unkown length :
conds = [ Mymodel.a== 'b', Mymodel.b == 'c', Mymodel.c == 'd']
Mymodel.query.filter(???(conds))
Thanks !