Best way to use select in a function that is returning a specific type
I don't understand why this code works. It doesn't return something of type VerifyUser yet the type checker doesn't complain.
I am getting:
Instead of:
1 Reply
if
users.userID
is a column on users table then select works correctly - it returns user id(1) on the field userID
select returns an array of values - you take the first one. seems correct.