T
tRPC
How to infer the output of a mutation? The current methods appear to be depreciated.
How to infer the output of a mutation? The current methods appear to be depreciated.
Looking for more? Join the community!
T
tRPC
How to infer the output of a mutation? The current methods appear to be depreciated.
T
tRPC
How to infer the output of a mutation? The current methods appear to be depreciated.
Recommended Posts
Trouble inferring the type of a very simple structure of nested routersA very simple router results in an inference error, causing the client to not be able to infer the rcalling trpc endpoints from vanilla nextJs api routesI'm struggling to find what's the best way to call a trpc endpoint directly from the server. BasicalMutation type issueI'm trying to mutate something like this with tRPC and Prisma
```const updateColumn = trpc.project.uCan I redirect the user from inside my router?I have a query protectedProcedure, which returns an object from my prisma planetscale db
What's theInfer the type of ctx for a specific procedureLet's say I had a helper function that I wanted to pass the context to, I can't use the default ContCORS in standalone serverHi,
I'm trying to get CORS working in standalone server.
Attempted this solution but unfortunatelyQueries break when in production on Vercel; work on localhostThe query is called like this:
```javascript
const { data } = api.useQuery(["user.!getCount"], {
Can't get client to workHi,
I can't get my client to work I'm using Next.js but I have also tried the React method from the