You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be super helpful if I could createMany or makeMany with e.g. some kind of callback which passes the element number being created. This could easily allow seeding multiple entities with (simple) state differences
// Example 1: Seeding users, where some of them should not be active:newUserFactory().createMany(10,(index: number)=>({isActive: Boolean(index%3)}));// Example 2: Seeding products, with a "unnatural" order in database:newProductFactory().createMany(10,(index: number)=>({order: 10-(index%5)}));