GitHub user robshep created a discussion: DetachedCriteria - OR disjuction from 
List

If I have a list of DetachedCriteria, how can I apply them in an `or { }` block 
?

```
new DetachedCriteria<>(Thing).build {
    and {
         name("eq", val)

        or {
            criteriaList.each { crit ->
                // something like: crit.apply()
            }
       }
}
```

TIA Rx

GitHub link: https://github.com/apache/grails-core/discussions/15261

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to