MongoDB query with nested JSON

0

Is it possible to perform a search inside a json nested with mongoDB? that is, I would like to obtain the content of the id: "A0002"

[
{
    "id":"a001",
    "nombre":"#0f0",
    "sub":[
        {
            "id":"ag01",
            "nombre":"nombre1",
            "sub":[
                 {
                    "id":"A0002",
                    "nombre":"#0f0",
                    "sub":[
                        {
                            "id":"bg01",
                            "nombre":"nombre3",
                            "sub":[]
                        }
                    ]
                }
            ]
        },
        {
            "id":"ak01",
            "nombre":"nombre2",
            "sub":[]
        }
    ]
}

]

    
asked by holman sneyder 15.04.2018 в 01:17
source

0 answers