Quick question: how to get mutation body in a middleware, which is for a global logging?

Hi everyone!Quick question: The pic shows that the output of "input" is undefined. Is there any another way to get it?
No description
AK
Alex / KATT 🐱16d ago
it's lazy getter, but you should be able to call opts.getRawInput() i think
X
XavierBread16d ago
Thanks for your reply, but I can't find any api which is related to getRawInput
AK
Alex / KATT 🐱16d ago
you shouldn't be logging request body here though fwiw
AK
Alex / KATT 🐱16d ago
No description
AK
Alex / KATT 🐱16d ago
can have a bunch of private data
X
XavierBread16d ago
got it. thanks
More Posts
Error with v11 when using batchingI'm using the lastest version of v11. When I use the batch link I get an trpc inernal error when battRPC failed on <no-path>: `headers` was called outside a request scopeI'm using NPM GET /api/trpc/post.test?batch=1&input=%7B%220%22%3A%7B%22json%22%3Anull%2C%22meta%22%v11 `Invalid Content-Type header`The most recent update of v11 seems to break with: ``` Invalid Content-Type header. This request mayCalling procedures from Next server actionsHi, is using trpc client allowed in server actions? I have two use cases, in one i call procedure frTRPC Typescript auto serialize errorThe inferred type of this node exceeds the maximum length the compiler will serialize. An explicit tTRPC with MSWDoes anyone have a basic example on how to set up MSW in a React Vite TRPC env? My main question isRevalidate / invalidate in server componentsIs there a solution for TRPC query invalidation (or revalidating), passing the actions from the clieTypescript type error with latest versionI'm initialising a project with trpc v11 and I'm trying to strictly follow the documentation for reaDon't understand cacheHow come my API is still getting called when it's already been called with other inputs? Ex: 1. api The inferred type of this node exceeds the maximum length the compiler will serialize.I'm facing this issue. The inferred type of this node exceeds the maximum length the compiler will sGetting strange react error in nextjsI am getting a strange Error Message when nextjs tries to compile: ```js TypeError: react__WEBPACK_Error on NextJs AppRouterAnyone knows why this is showing on my console?TRPC Dynamic Procedure URLI am currently using QStash as a message queue with TRPC. QStash is HTTP-based and in the example beIs it possible to get the procedure name / id in middleware?I want to create a caching middleware that in some routes, stores a cache key that contains the routqueries and mutations has wrong response type in client ( monorepo )tRPC + React Query Data Invalidation?Hey y'all, I'm working with tRPC and React Query and just trying to understand how this works. I hav