sequelize-mock icon indicating copy to clipboard operation
sequelize-mock copied to clipboard

Docs update

Open officialkevinbrian opened this issue 1 year ago • 0 comments

I have updated and fixed documentation error of this part

User.$useHandler(function(query, queryOptions, done) { if (query === 'findOne') { if (queryOptions[0].where.id === 42) { // Result found, return it return User.build({ id: 42, name: 'foo' }); } else { // No results return null; } } });

officialkevinbrian avatar Jul 21 '23 18:07 officialkevinbrian