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
ForkMeDaddy4mo ago
No description
ForkMeDaddy
ForkMeDaddy3mo ago
all tables are currently empty and don't have data bump pls
Angelelz
Angelelz3mo ago
Can you show how you're passing the schame and relations to the drizzle function when instantiating?
megamindat
megamindat3mo ago
Facing the same problem.. Did you mange to solve this? Oh, wait. Sorry. Thank you, I forgot to do that.
Angelelz
Angelelz3mo ago
Good deal
ForkMeDaddy
ForkMeDaddy3mo ago
I'm not aware I need to pass something specific regarding relations.. Where is that in the documentation?
No description
Angelelz
Angelelz3mo ago
Drizzle ORM - Query
Drizzle ORM is a lightweight and performant TypeScript ORM with developer experience in mind.
Angelelz
Angelelz3mo ago
That's how drizzle knows what to put after query and what to put in with