2

I'm trying to insert some data in the compass and the formwork shows to me as below:

/** 
* Paste one or more documents here
*/
{
    "_id": {
        "$oid": "6065bca3dad082deb74c05bc"
    }
}

I think maybe I should input in this way, but it dosen't work:

/** 
* Paste one or more documents here
*/
{
    "_id": {
        "$oid": "6065bca3dad082deb74c05bc"
    }

    "username":{
         "wpx"
    }
}

How should I do, thanks!

PeterWu
  • 49
  • 1
  • 6

2 Answers2

2

There is a comma is missing between the keys. Also, there must be some value given to "wpx" key.

so your document should look like..

{
    "_id": {
        "$oid": "6065bca3dad082deb74c05bc"
    },
    "username":{
         "wpx":""
    }
}
Steve Dias
  • 36
  • 2
1

The document should be inside the [] square bracket and all the documents should be separated by (,) a comma.

Eric Aya
  • 69,473
  • 35
  • 181
  • 253