If you're using mlab to access a MongoDB instance and if you're having trouble creating a document in a collection, there might be one of these 2 issues
- You cannot use the MongoDB syntax to create a document director inside their Add Document editor. So you cannot do db.collection.insert().
Instead you just enter the collection in JSON format.
- Make sure you wrap both the field name and value in double quotes.
The following is an example of what worked: