Group by Multiple columns with drizzle
I have a schema that looks rougly like this:
I want to groupBy multiple columns(date,location), but I'm not sure if there is a drizzle-way to do it, or should I do a raw query?
3 Replies
I think I solved it lol
Yeah that's how I'd do it (tho I haven't tried it in a hot minute)
Is it working?
yeah, it is. I just didnt realize that's how GroupBy works in drizzle. Docs dont have an example for it, but just looking at types made it pretty obvious