XavierBread
XavierBread8mo ago

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
6 Replies
Alex / KATT 🐱
it's lazy getter, but you should be able to call opts.getRawInput() i think
XavierBread
XavierBreadOP8mo ago
Thanks for your reply, but I can't find any api which is related to getRawInput
Alex / KATT 🐱
you shouldn't be logging request body here though fwiw
Alex / KATT 🐱
can have a bunch of private data
XavierBread
XavierBreadOP8mo ago
got it. thanks