Documents: Fields, Values, Quotes and Braces

A document is written like a filled-in form, with braces around it, a field name, a colon and a value for each line, commas between them, and quotes around text but not around numbers or true and false; mongosh's errors point at the punctuation that's missing.

By

Updated

Cheat sheet: Documents: Fields, Values, Quotes and Braces
Category
MongoDB
Level
Novice
Tags
Document in MongoDB, Field (mongodb), JSON, mongodb