title: TypeORM insert basic master data (types, status,..) after creating the table
body: <p>I have question for you. I am using NestJS and typeORM. I am trying to insert default values to tables after creating the tables. For example i have a priority table and i need to insert High/Medium/Low values. I tried everything from typeorm and nestJS documentation and I read related questions and answers from here. I could not do it yet.</p>
  <pre><code>import {getConnection} from &quot;typeorm&quot;;
  
  await getConnection()
      .createQueryBuilder()
      .insert()
      .into(User)
      .values([
          { firstName: &quot;Timber&quot;, lastName: &quot;Saw&quot; }, 
          { firstName: &quot;Phantom&quot;, lastName: &quot;Lancer&quot; }
       ])
      .execute();
  </code></pre>
  <p>I have found above code and i think the way is this. But i could not find in which file should i use this code chunk. If you help me i will be very happy. Thanks.</p>