How to pull a single piece of data from Prisma using trpc

I'm working on an e-commerce site for a client using the t3 stack. I'm trying to create a product details page using the data from Prisma and planet scale and I haven't found a solution to getting a specific product. Any solutions to this would be greatly appreciated #questions
3 Replies
Pod
Pod2y ago
Use findUnique and pass the id of the product
Thorjr5
Thorjr5OP2y ago
Okay I was looking at the code and was like I know this is simple. Wtf?...lol thank you man.
Pod
Pod2y ago
Haha no problem
Want results from more Discord servers?
Add your server