t
tRPC
t
tRPC
getById from current user
Original message was deleted
tRPC
Join
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
5,111
Members
View on Discord
N
Nick
•
4/5/23, 6:40 AM
Put the user id in Context
N
Nick
•
4/5/23, 6:41 AM
It
’s in the docs but this guy did it
Async User Call in `createContext` (context.ts) or in `isAuthed` (in trpc.ts)
N
Nick
•
4/5/23, 3:18 PM
Ah my apologies
, I thought this was about how to get the ID but i see you had that
N
Nick
•
4/5/23, 3:18 PM
It
's a prisma question right
?
N
Nick
•
4/5/23, 3:18 PM
Best to take that to whatever help forums Prisma has really
, I
'm not that familiar with it personally