many-to-many and querying
Hey,
I just started using Drizzle and I would appreciate it if someone could chime in and tell me that I'm using it right. I read the documentation and looked at examples, and I'm positive I replicated it correctly. It also works fine. I just would like to confirm, that I can continue to build my application like this.
I'm tracking transactions. Every transactions can have many tags, hence the many-to-many relation:
3 Replies
I'm getting my data like this:
This results in:
I now intend to reformat my
transactionTags
array using JS.
Is that okay-ish? 😄Yes. Though, keep in mind that the relational query api v2 will address this
GitHub
Relational API v2 · drizzle-team drizzle-orm · Discussion #2316
We've launched Drizzle Relational Queries exactly a year ago and it's time to ship a fundamental upgrade. We've gathered a massive amount of valuable feedback from the community and goi...