Error in relational queries
This is supposed to return the user with profile in the result. But, the intellisense is not working, and also the type in the result doesn't include the profile.
8 Replies
👋 Could you share
generateTableName
and check that you included the relation in the drizzle client?
https://drizzle.run/b1cnfnno3n9n7x626j50ogie
It looks like it works for me
Drizzle Run
DRVGO's playground - Drizzle Run
It's just a simple function
Also
This is the db instance
Hmm
Weird
Apparently the function is blocking the intellisense
Removing the table name generator function works
can you use
pgTableCreator
from Drizzle?Drizzle ORM - Goodies
Drizzle ORM is a lightweight and performant TypeScript ORM with developer experience in mind.
I never tried it, wait let me check
Damn! this is what I actually needed
XD
Thanks a lot!
Nice! 🫡
Discord is still a spyware :sweating: