Modify request body in UDG

Hi guys so I’m using UDG here and I want to modify the client’s query (located in request body) in pre Go plugin. Can we do that there? Maybe , you can show me an example?

When I tried to modify the body request in the pre-request plugin , the Tyk returned an error ‘Error while unmarshalling GraphQL: the provided request is empty’.

Not tried this. Would try and let you know how it goes.