Skip to content

Instantly share code, notes, and snippets.

@danared
Created October 29, 2015 20:09
Show Gist options
  • Save danared/16ebcb58db941957de2c to your computer and use it in GitHub Desktop.
Save danared/16ebcb58db941957de2c to your computer and use it in GitHub Desktop.
db.orders.insert({
"_id": 6666,
"item": "jkl",
"price": "rogue",
"quantity": 1 });
Document failed validation
WriteResult({
"nInserted": 0,
"writeError": {
"code": 121,
"errmsg": "Document failed validation"
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment