Fast
Explore posts from serversPPrisma
•Created by Nevo David on 5/4/2024 in #help-and-questions
Is it possible to use every + and?
otherwise i dont see why you wouldnt be able to just implement it yourself
6 replies
PPrisma
•Created by Nevo David on 5/4/2024 in #help-and-questions
Is it possible to use every + and?
What database do you use? if its postgres, cockroach or mongo this could be useful https://www.prisma.io/docs/orm/prisma-client/special-fields-and-types/working-with-scalar-lists-arrays#filtering-scalar-lists
6 replies
Nextjs http endpoint (no prisma)
Personally I think creating an interface and just casting the json result to it would be the cleanest (Would still have to check if the result of the fetch is correct eg status = 200) almost like how you did it in the first snippet
9 replies
Nextjs http endpoint (no prisma)
Trpc has nothing to do with Prisma i would recommend reading this https://trpc.io/docs
And for the endpoint you would have to rewrite it to be defined in the trpc router as a procedure and not a regular nextjs endpoint
9 replies