We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, I have a factory that defines a property like this:
duration: Factory.sequence(function(n) { return n }),
I create multiple sets of objects
await factory.createManyAsync('object', 200 ) await factory.createManyAsync('object', 200,{ref:hardcoded_id} )
Now for the second set I like the duration sequence to start from the beginning again, how can I do that? I that possible?
Best, Stan
The text was updated successfully, but these errors were encountered:
Solved it this way, the name of specific sequence 'createdAtSequence' can be passed in via buildOptions.
... createdAt: factory.sequence(buildOptions.createdAtSequence||'createdAt', n=> { return moment().add(parseInt((n-1)/buildOptions.per_day||100),'days').toDate() } ) ...
Sorry, something went wrong.
No branches or pull requests
Hi,
I have a factory that defines a property like this:
duration: Factory.sequence(function(n) { return n }),
I create multiple sets of objects
Now for the second set I like the duration sequence to start from the beginning again, how can I do that? I that possible?
Best,
Stan
The text was updated successfully, but these errors were encountered: