Nested Document

is This database Structure is Possible in MongoDb (Mongoose)

  "countries": [{
        "id": "1",
        "title": "",
        "institutes": [{
            "id": "1",
            "title": "",
            "programs": [{
                "id": "",
                "title": "",
                "degree_title": "",
                "campuses": [{
                    "id": "",
                    "title": "",
                    "departments": [{
                        "id": "",
                        "title": "",
                        "types": [{
                            "id": "",
                            "title": "",
                            "sessions": [{
                                "id": "",
                                "title": ""
                            }]
                        }]
                    }]
                }]
            }]
        }]
    }]

Please Help me If anyone have use or idea to do,
If not possible then which method we use here to .We Called it Sub-Document ,

Wrong forum.
Here we discuss about Mongoose OS.

1 Like