Get multiple records conditionally with where method

Suppose you want to get all the records whose name column is "apple" or "grape" in the fruits table.

Fruit.where(name:'Apple').or(Fruit.where(name:'Grape'))

I was able to get it.

Recommended Posts

Get multiple records conditionally with where method
Supports multiple test cases with one method with @ParameterizedTest!
Where to get lost in specifications with Spark routing
Get started with Gradle