query with one to many (postgres + foreign keys)
I have the following schema:
I am trying to query for a specific accounts and get all associated nfts with:
This results in the error:
Do I have to use drizzles
I am trying to query for a specific accounts and get all associated nfts with:
This results in the error:
Invalid drizzle query.Do I have to use drizzles
relations to associate nfts to accounts instead of just foreign keys in order to use db.query?