Getting type from a CTE
I've got the following function:
I've been trying to get the type for the users through inference. I know how to do it with a regular query but Drizzle balks when I pull the query from within the CTE and attempt to infer its type. It will only work if I define the query within the CTE. What can I do in this situation?
1 Reply
I don't want to manually type the users property. I know I can do this: