Skip to content

Instantly share code, notes, and snippets.

@devrsantos
Created November 22, 2019 16:07
Show Gist options
  • Save devrsantos/59c73cb94813ac768cbc49b2929917c4 to your computer and use it in GitHub Desktop.
Save devrsantos/59c73cb94813ac768cbc49b2929917c4 to your computer and use it in GitHub Desktop.
db.pessoa.update({nome: "Renan"}, {$inc: {sobrenome: "Santos"}});
WriteResult({
"nMatched": 0,
"nUpserted": 0,
"nModified": 0,
"writeError": {
"code": 14,
"errmsg": "Cannot increment with non-numeric argument: {sobrenome: \"Santos\"}"
},
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment