title: Hanlde missing body property in post request with NestJs
body: <p>I would like to know what is the best way to handle or to prevent POST requests from a user with a missing body property.
  For example, i have a sample DTO like this :</p>
  <pre><code> export class SourceDto {
  
    id: string;
  
    name: string;
  
    description: string;
  
    address: string;
  
    agent_id: string;
  
    state: number;
  
    created_at: Date;
  
    updated_at: Date;
  }
  </code></pre>
  <p>When sending a post request without the &quot;name&quot; property in the body I am getting a 500 error because my query needs the name property to not be null.
  So my question is does NestJs also handle validations to validate if any of the body properties are missing? And instead of returning 500 errors without any info, return an error message that says missing name property?</p>