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

Did you find this page helpful?