piano1029
piano1029
TtRPC
Created by piano1029 on 5/28/2023 in #❓-help
useMutation not handeling arguments correctly.
Hello, I have a mutation setup on the server with the input being an object containing the fields email and password. I am using the TRPC HTTP server on the backend. The request data is {"0":{"email":"dev@dev.dev","password2":"test"}} and the response complains about receiving undefined instead of object. I'm using Zod for input schema. Furthermore, the useMutation arguments are any according to Visual Studio Code intellisense
6 replies