drizzle-orm not inferring type from soft relations
Hello, I have set up soft relations to products and prices, my schema looks like this:
This is the product table
I have checked that my schema setup is correct, I think. Now, I have this query:
And in the resulting data type I can see this:
Why is the product typed as any? Can drizzle not infer the types correctly? Thank you for any help.
1 Reply
Just an update, the data I get is all okay, just the type inferring that is not working :(