.find() works weirdly when coupled with map selection
Closed this issue · 0 comments
pnc commented
If you write:
User.where { … }.select([id: "id"]).find()
and users match, you get [id: 1]
.
If no users matched the query, you'd expect to get null
. However, RelScope currently returns [id: null]
.