Return first or throw

M2McLean 254/5/2023
I have a hard time believing this hasn't been asked yet, but my search results have yet to yield anything.

Is it not possible (or planned) to do something like:
const firstItem =, userId)).takeFirstOrThrow()
M2McLean 254/5/2023
The idea here being, that firstItems type will be User, and not User[]
M2McLean 254/5/2023
OK, finally found what I was looking for here:
Not planned in the core library, but will probably be present in the convenience API layer on top.