Alaskan donut
Explore posts from serversPPrisma
•Created by Papa Smerf on 9/12/2024 in #help-and-questions
Selecting random records from table
I'm really hoping Prisma will support random queries at some point...
Here is an extension that achieves this: https://github.com/nkeil/prisma-extension-random. I haven't used this yet, but it's worth looking into.
5 replies
PPrisma
•Created by Alaskan donut on 8/28/2024 in #help-and-questions
Complicated groupBy query
Hey Jon, your query worked well. I modified it return the structure I needed:
Here is the TypeScript that I used to merge the query into another posts query. This isn't procedure isn't necessary, since this could be handled with a single query, but I will deal with this later. Thanks again!
7 replies
PPrisma
•Created by Alaskan donut on 8/28/2024 in #help-and-questions
Complicated groupBy query
Thank you, @Jon Harrell! I greatly appreciate this.
7 replies
PPrisma
•Created by Alaskan donut on 8/28/2024 in #help-and-questions
Complicated groupBy query
7 replies
PPrisma
•Created by Alaskan donut on 6/6/2024 in #help-and-questions
Flat response from relational query?
If I have no choice but to manually flatten, I will just use a map function on the array.
4 replies