Fawn icon indicating copy to clipboard operation
Fawn copied to clipboard

upsert

Open xfg opened this issue 7 years ago • 1 comments

I read the code and seems that the next example will not be rolled back properly:

task
  .update("cars", {make: "Toyota"}, {make: "Toyota", year: 2016})
  .options({upsert: true})
  .update("cars", {make: "Ford"}, {make: "Ford", year: 2016})
  .options({upsert: true})
  .run();

Is it true?

xfg avatar Oct 02 '17 17:10 xfg

Yeah I think you're onto something. I'll look into it.

e-oj avatar Oct 03 '17 14:10 e-oj