mirror of
https://github.com/jlengrand/exposed-wiki.git
synced 2026-03-10 08:11:18 +00:00
select takes a list instead of a supplier
This commit is contained in:
committed by
Andrey.Tarashevskiy
parent
53afd3c433
commit
44df583af1
2
DAO.md
2
DAO.md
@@ -164,7 +164,7 @@ Lets imagine that you want to find all users who rated second SW film with more
|
||||
First of all we should write that query using Exposed DSL.
|
||||
```kotlin
|
||||
val query = Users.innerJoin(UserRatings).innerJoin(StarWarsFilm)
|
||||
.slice { Users.columns }
|
||||
.slice(Users.columns)
|
||||
.select {
|
||||
StarWarsFilms.sequelId eq 2 and (UserRatings.value gt 5)
|
||||
}.withDistinct()
|
||||
|
||||
Reference in New Issue
Block a user