LearnBoost/mongoose — Issue #593: mongoose 2.3.9, model.update() with upsert?
Author: gocoffeecup
Created: 2011-11-04 18:59:10+00:00
State: open

i just upgraded to mongoose@2.3.9 and my update with upsert:true stopped working, looking at the tests the new syntax of model.update is model.update(,,cb)

before i was able to pass the update options like {upsert:true} as 3rd variable

model.update(conditions,update,options,cb)