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