In the docs, it only says how to use `or()` in a `...
# komapper
d
In the docs, it only says how to use
or()
in a
where { }
using `WhereDeclaration`s, but can I write
Copy code
where { 
  foo eq ...
  or { bar eq .. }
}
to get
(foo = ...) or (bar = ...)
?
t
Yes
👍🏼 1
d
And inside the or block they're ANDed?
d
Oh... I just realised I was looking at the declarations section... I didn't notice that logical operator section... maybe that section should be before? I think most of the time users would rather use that than the declarative form... 🤔. But thanks! And sorry for the question... I'm in quite a rush to get this done, I should really have looked a bit further down.
👍 1