title: How do I pass plain text as my request body using NestJS?
body: <p>One of the controller methods in my NestJS application is supposed to take plain text as its body but whenever I try to make a request, the parameter is received as an empty object. Is this even possible or am I going to have to create some sort of DTO to pass that single string?</p>
  
  <p>Example:</p>
  
  <pre><code>@Post()
    myFunction(@Body() id: string) {
      // do something here
    }
  </code></pre>