How to query all with same id from array mongodb

I want to query all documents with "type" : "something" and having the same "id" for "name" : "sId". But it is in an array, I'm not sure how to do it in Robo 3T. Below is a sample document.

"_id" : 23423423,
"type" : "something",
"reference" : {
        "references" : [ 
            {
                "system" : "test1",
                "name" : "testId",
                "id" : [ 
                    "AS323232323"
                ]
            }, 
            {
                "system" : "test1",
                "name" : "sId",
                "id" : [ 
                    "7777777"
                ]
            }
        ]
    }```


from Recent Questions - Stack Overflow https://ift.tt/36ag5wn
https://ift.tt/eA8V8J

Comments

Popular posts from this blog

Today Walkin 14th-Sept

Hibernate Search - Elasticsearch with JSON manipulation

Spring Elasticsearch Operations