You should use eq inside of the filter, not the select.
eq
filter { User::id eq userId }
The docs mention it in the Using Filters section.