Aman Dalmia
09/14/2022, 5:22 PMrelevance, and then pass relevance for orderBy. We are also using pagination. Which is why it is very important to have the sorting bit done using Prisma's native sorting support.
Something like this would be ideal:
this.prisma.job.map((job) => { ...job, relevance: calculateRelevance(job) }).findMany({ orderBy: relevance })
I tried reading the docs to search for something that might work but couldn't find something to match this use case. Does anyone have any suggestions for how I can go about this? Or do you recommend a different approach?Austin
09/16/2022, 6:07 PMrelevance separately. Then you could update the rows with the new relevance data.Aman Dalmia
09/17/2022, 4:30 AMAustin
09/20/2022, 7:52 PMis there is a way to separately apply pagination on a list of fetched jobs instead of doing it through findManyCould you explain this a little more?