Do you know how can i seed random associative entities with using nestJS + typeORM + nestjs-seeder I only know how to use static element
@Factory('static_var')
or faker
@Factory(faker => faker.name.findName())
or custom functions
@Factory(() => {
const minAge = 18;
const maxAge = 30;
return Math.round(Math.random() * (maxAge - minAge) + minAge);
})
But i want to be able to insert random Ids from an associative table