Replies: 1 comment 6 replies
-
Such cases will be covered with a separate relational API layer. You can read this thread to get a better understanding: https://twitter.com/bloberenober/status/1644798759002357762?t=STLfv9ggkuIegcoy9dA51w&s=19 |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Take this prisma example:
With prisma is very easy to query nested relationships. In that example you have a one-to-many relationship with multiple units, which have a one-to-many relationship with a owner junction table which have a one-to-one relationship with a client.
Also there are other examples that can be complex, like nested relationships of the same table. In the following example I have a query to a client that have a one-to-many relationship with a proxy junction table that have a one-to-one relationship to again a client table.
In drizzle there are some examples of table joining, but they are very basic.
How can I achieve something like prisma does in drizzle?
BTW, yes I'm not good with database queries 😅
Beta Was this translation helpful? Give feedback.
All reactions