Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

294
Views
How to add index to many-to-many relationship in TypeORM

When I add a many-to-many relationship in typeORM entities, how can I add index to the relation columns?

@Entity()
export class Tag {
  @Column()
  id: number

  //@Index() does not work here...
  @ManyToMany(() => Todo, (todo) => todo.tags)
  todos: Todo[];

......
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Turns out the indices are add automatically. Then I have to ask how can I tell typeORM not to add the index since it may not be needed.....enter image description here

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!