Junior — Middle
How do you assess your skills working with TypeORM?
sobes.tech AI
Answer from AI
My skills with TypeORM are at a confident level for typical CRUD operations and building relationships between entities. I can create entities, set up relations (OneToMany, ManyToOne, ManyToMany), write queries using QueryBuilder, and work with migrations.
For example, I used TypeORM to create a REST API, where entities reflected database tables, and repositories allowed convenient data manipulation. I am also familiar with setting up lazy loading and caching.
Example of creating an entity:
import { Entity, PrimaryGeneratedColumn, Column } from "typeorm";
@Entity()
export class User {
@PrimaryGeneratedColumn()
id: number;
@Column()
name: string;
@Column({ unique: true })
email: string;
}