johanhaleby / occurrent

Unintrusive Event Sourcing Library for the JVM
https://occurrent.org
120 stars 16 forks source link

Add Condition.in(..) #150

Open johanhaleby opened 7 months ago

johanhaleby commented 7 months ago

It would be nice to be able to do:

domainEventQueries.exists(Filter.type(Condition.in("A", "B", "C")))
johanhaleby commented 7 months ago

Kotlin extension function can be created: isIn

johanhaleby commented 7 months ago

A naive implementation can transform in to multiple equals statements with or. But it's quite ugly, and it would be better to support it natively.