title: how is UPDATE in Nestjs typeorm (pgsql) works?
body: <p>In service.ts file</p>
  <pre class="lang-js prettyprint-override"><code>......
  import { Repository } from &quot;typeorm&quot;;
  ....
  constructor(
      @InjectRepository(Profile)
      private readonly profileRepository: Repository&lt;Profile&gt;,
    )......
  
  async updateprofile(profile_id:string, data: any): Promise&lt;any&gt; {
      try {
        console.log(profile_id);
        await this.profileRepository.update(data); //how to update without saving new row in db
  
        return {
          success: true,
          message: 'Successfully updated profile',
        };
      } catch (err) {}}....
  </code></pre>
  <p>i don't know how to update using particular  id and body data without save.(This update syntax is wrong)
  because when save is used it make two rows which have unique values so error.
  and console.log(id) is giving output</p>
  <pre><code>{ profile_id: '29adb514-a10f-49c0-bde2-19dcbcf9e0b9' }
  </code></pre>
  <p>how to take value of that too?</p>