Type 'ZodObject{ id ZodNumber; first_name ... missing but required in _procedure
So im trying to pass the logic I had on my Nest + Prisma + GraphQL to the ct3 stack and im a beginner with trpc which makes it even more exciting!
The objective of my web application is to have a system where users can manage their workout and meal plans and, in case they dont have no idea of what they are doing, give them plan suggestions based on their weight, daily activity, etc.
I installed the package zod-prisma so i dont have to write everything by hand.
So based on my Prisma model i have
And on my user-login router I tought i could do something like:
Which i see now its not the right way to do. I probably have to read the documentation a bit better but i accept any tips to lead me on the right direction.
3 Replies