many to many relation problems
I'm using planetscale and can't seem to figure out what is wrong with this relation. There's no autocompletion for
with
when using the RQB
and trying to access the table manually throws an referenced table
error
4 Replies
All of these exported relations wind up in the
schema
object passed to the drizzle constructor, correct?Mmm not all
The organizationToUsers is not there let me change that
nice it worked!
thanks
what did you do? just make sure to import them all?
I love the internet
I just had to declare relations (i.e. using the
relations
function https://orm.drizzle.team/docs/rqb#declaring-relations and import it in schema)Drizzle Queries - DrizzleORM
Drizzle ORM | %s