Steeeman avatar

Adding documents in mlab

sharatdotinfo

Published: 21 Dec 2017 › Updated: 21 Dec 2017Adding documents in mlab

Adding documents in mlab

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

Leave Adding documents in mlab to:

Written by

Crypto Enthusiast

Read more #mongodb posts


Best Posts From Steeeman

We have not curated any of sharatdotinfo's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.

More Posts From Steeeman