Adding documents in mlab

in #mongodb7 years ago

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

  1. 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.

  1. Make sure you wrap both the field name and value in double quotes.

The following is an example of what worked:

Screen Shot 2017-12-20 at 11.13.40 PM.png

Coin Marketplace

STEEM 0.13
TRX 0.25
JST 0.030
BTC 84512.10
ETH 1616.14
USDT 1.00
SBD 0.78