Pymongo: How to insert an array of multiple fields in a document?
<p>I am working on <code>MongoDB</code> in <code>python</code> <code>[pymongo]</code>. I want to insert an array of multiple fields in a document. For example: In the below structure of a collection, I want to insert array of <code>Places Visited</code> in all documents. I do not know what it is called in the world of <code>Mongo</code>.So that I may insert it. <strong>How to insert an array in a document?</strong> Can some one help?    </p>

<pre><code>collectionName
    {
            "_id" : "4564345343",
            "name": "Bunty",
            "Basic Intro": "A.B.C.D.",
            "Places Visited": [
                    "1" : "Palace of Dob",
                    "2" : "Palace of Victoria",
                    "3" : "Sahara Desert"
            ]
    }
    {
            "_id"  : "45657865745",
            "name": "Humty",
            "Basic Intro": "B.C.D.",
            "Places Visited": [
                    "1" : "Palace of Pakistan",
                    "2" : "Palace of U.S.A."
                    "3" : "White House"
            ]
    }
</code></pre>