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
// todo.seed.tsconsttodo=TodoFactory.build({});// pass empty object to build a Todo with default field.exportconstseedTodos=()=>TodoModel.create(todo);// pass created Todo to Mongoose model create()
So, when using this with Faker.js, the needs to define override field on Factory.build() is sometimes redundant. Therefore I think it's better to make the argument of build() todo optional.
The text was updated successfully, but these errors were encountered:
Hi,
Firstly, this is a very useful package. I usually use this with Faker.js to create fake data, for example:
So, when using this with Faker.js, the needs to define override field on Factory.build() is sometimes redundant. Therefore I think it's better to make the argument of build() todo optional.
The text was updated successfully, but these errors were encountered: