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
Instead you just enter the collection in JSON format.
The following is an example of what worked: