title: TypeORM find/findOne options(to find lastest one entitiy)
body: <p>Now I am using Typecript, Express.js, TypeORM</p>
  <p>I want to use Repository.find(or Repository.findOne) to find the latest ONE entity among entities which fit conditions.</p>
  <p>This is my Entity</p>
  <pre><code>
  import {
      Entity,
      CreateDateColumn,
      UpdateDateColumn,
      PrimaryGeneratedColumn,
      Column,
      BaseEntity,
      ManyToOne,
  } from &quot;typeorm&quot;;
  
  import { User } from &quot;./user&quot;;
  import { Product } from &quot;./product&quot;;
  
  
  @Entity()
  export class Transaction extends BaseEntity {
      @PrimaryGeneratedColumn('increment', { type: &quot;int&quot; })
      id: number;
  
      @Column()
      user_id: number;
  
      @Column()
      product_id: number;
  
      @Column({
          type: &quot;enum&quot;,
          enum: PaymentMethod,
          default: PaymentMethod.EL
      })
      paymentMethod: PaymentMethod;
  
      @Column()
      paymentValue: number;
  
      @Column()
      totalValue: number;
  
      @CreateDateColumn({ type: 'timestamp' })
      createdAt: Date;
  
      @UpdateDateColumn({ type: 'timestamp' })
      updatedAt: Date;
  }
  
  </code></pre>
  <p>and this is my code to find the latest(According to createdAt)</p>
  <pre><code>let alltransactions = await transactionRepository.find({ where: [ {user_id : ownership.user_id}, {PaymentMethod: ownership.paymentMethod}]});
              
  </code></pre>
  <p>I am trying to use find  all transactions that match to the conditions and ordering them by (so I put the latest one on the first) and get the first entitiy...!!</p>
  <p>How can I solve it?</p>