Skip to content

Instantly share code, notes, and snippets.

@ssebro
Created February 18, 2015 00:33
Show Gist options
  • Save ssebro/2574966f2dd3b8ccc252 to your computer and use it in GitHub Desktop.
Save ssebro/2574966f2dd3b8ccc252 to your computer and use it in GitHub Desktop.
Upsert
adapter.upsert = function (model, id, update) {
return adapter.update(model,id,update,{upsert:true});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment