Coding task · NestJS course · Module 3: TypeORM and Databases

Seeder for legionaries

Write a seeder that populates the database with initial legionary data.

Task

Create a seed() function that connects to the database, clears the legionaries table and inserts 5 new legionaries