Skip to content

Instantly share code, notes, and snippets.

@johnlpage
Created February 7, 2022 16:11
Show Gist options
  • Save johnlpage/6ab695b5313ec192654f81ccac2813ca to your computer and use it in GitHub Desktop.
Save johnlpage/6ab695b5313ec192654f81ccac2813ca to your computer and use it in GitHub Desktop.
doc = {_id: "test", x:1,y:1,s:5.5}
try { db.readonlyfields.insertOne( doc) } catch(e) {print(e.errmsg)}
Document Failed validation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment