Package version
21.6.1
Describe the bug
I have a model factory:
export const MyFactory = factory
.define(MyModel, async () => {
return { };
})
.relation('users', () => UserFactory)
.build();
I'm using factories in integration tests and these tests have scenarios (test datasets) with dynamic user count including 0. I realized using .with('users', 0) still creates 1 user.
Expected: No user is created.
Reproduction repo
No response