Cant query with relation using query method
Hi Guys
I facing a challenge where when i query and try to pull out the data from referenced table, it says TypeError: Cannot read properties of undefined (reading 'referencedTable')
here is my schema relations:
here is my query in sveltekit +page.server.ts
some facts
I facing a challenge where when i query and try to pull out the data from referenced table, it says TypeError: Cannot read properties of undefined (reading 'referencedTable')
here is my schema relations:
here is my query in sveltekit +page.server.ts
some facts
- if i remove the with property:true, it's working but i can't get the data in property table
- i try to double query and join it manually in the code, but not working because the 2nd query that query to the table separately is only able to filter it using single data, which i will have multiple property rows
