typeorm-seeding icon indicating copy to clipboard operation
typeorm-seeding copied to clipboard

Example for how to seed ManyToMany relation

Open darrenbarklie opened this issue 3 years ago • 1 comments

Hi there,

As per the issue detailed here, I'm looking for guidance on how to approach seeding ManyToMany relationships.

In my case, multiple Users can own multiple Companies.

I am aiming to see specific scenarios between User/Company ownership for testing, but couldn't find an appropriate example to seed as intended. Many thanks in advance.

darrenbarklie avatar May 24 '22 23:05 darrenbarklie

Probably a duplicate of 139

darrenbarklie avatar May 24 '22 23:05 darrenbarklie