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