title: Abnormal behavior in a TypeORM, PostgreSQL query
body: <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>const stocks1 = await getRepository(FilteredStockEntity).find({
     where: { MC_BKT: 1 }, order: { R_CODE: "ASC" }
  });
  const filtered_large_cap_stocks = await getRepository(FilteredStockEntity).find({
     where: { MC_BKT: 1 }, order: { R_CODE: "ASC" }
  });
  const filtered_mid_cap_stocks = await getRepository(FilteredStockEntity).find({
     where: { MC_BKT: 2 }, order: { R_CODE: "ASC" }
  });
  const filtered_small_cap_stocks = await getRepository(FilteredStockEntity).find({
     where: { MC_BKT: 3 }, order: { R_CODE: "ASC" }
  });
  console.log(stocks1.length);
  console.log(filtered_large_cap_stocks.length);</code></pre>
  </div>
  </div>
  </p>
  <p>Hi everyone, I'm facing this abnormal behaviour with typeorm query here. When the query runs for stocks1, it gives me an empty array, but at the next line when it runs for filtered_large_cap_stocks it gives me elements equal to the length of elements present in database. I don't know how is this happening. Can anybody find out why is this happening? I'm using nestjs, postgres and typeorm.</p>