zenith
zenith
TTCTheo's Typesafe Cult
Created by zenith on 12/13/2022 in #questions
Prisma sort by latest post to a thread
Hi everyone, trying to return a list of "threads" which have lots of "posts" on them. I'm trying to write a query that will return the x most recently updated threads by sorting on their latest post. I've tried using take: 1, and _max on the relation and a few other things but it feels like I'm missing something. Feels like it should be fairly trivial but I just can't figure out an easy way to do it in the query. Any ideas for this pattern? (I'm abstracting a bit, my objects are named a bit differently but the pattern is the same).
1 replies
TTCTheo's Typesafe Cult
Created by zenith on 12/2/2022 in #questions
Conditional rendering on TS type
10 replies
TTCTheo's Typesafe Cult
Created by zenith on 10/18/2022 in #questions
Stack suggestion - DB platform for a larger number of smaller projects
Hey y'all, love planetscale but it's limitation on number of branches means that even if I have a very small app that has very low usage, I can't really do another on PS. Any good options for things that scale well for a larger number of smaller projects? Happy to pay for usage, doesn't need to be free, but ideally has a pay as you go sort of model.
25 replies