Query "with" not populated

I have a collection relation and a file relation. I want to query a collection and all their files. However when using query with the "with" property does not have autocompletion for the file table and I get a "Cannot read properties of undefined (reading 'referencedTable')" error? What am I doing wrong?
No description
No description
8 Replies
ForkMeDaddy
ForkMeDaddyOP9mo ago
No description
ForkMeDaddy
ForkMeDaddyOP8mo ago
all tables are currently empty and don't have data bump pls
Angelelz
Angelelz8mo ago
Can you show how you're passing the schame and relations to the drizzle function when instantiating?
megamindat
megamindat8mo ago
Facing the same problem.. Did you mange to solve this? Oh, wait. Sorry. Thank you, I forgot to do that.
Angelelz
Angelelz8mo ago
Good deal
ForkMeDaddy
ForkMeDaddyOP8mo ago
I'm not aware I need to pass something specific regarding relations.. Where is that in the documentation?
No description
Angelelz
Angelelz8mo ago
Drizzle ORM - Query
Drizzle ORM is a lightweight and performant TypeScript ORM with developer experience in mind.
Angelelz
Angelelz8mo ago
That's how drizzle knows what to put after query and what to put in with
Want results from more Discord servers?
Add your server