I have an entity like this
@Entity()
export class Order {
@PrimaryGeneratedColumn('increment')
id: number;
@OneToMany(() => Transaction, (t) => t.order, {
cascade: true,
})
transactions: Transaction[];
}
How do I use find() to search for all records with transactions.length > 0?
I prefer to use find() but if it is not possible should I use the query builder?