marcello3d / node-mongolian

[project inactive] Mongolian DeadBeef is an awesome Mongo DB driver for node.js
https://groups.google.com/group/node-mongolian
zlib License
349 stars 50 forks source link

Is there a way to do Upserts #3

Closed clintberry closed 13 years ago

clintberry commented 13 years ago

Is there a way to do upserts in Mongolian?

p.s. I love the simplicity of what you have done.

clintberry commented 13 years ago

Nevermind, I see it in the code now. Thanks.

marcello3d commented 13 years ago

It should be the same as on the mongodb shell: http://www.mongodb.org/display/DOCS/Updating#Updating-UpsertswithModifiers

Granted, maybe this is a good case for diverging from their CLI, as I don't think this is that obvious.