MongoDB
 sql >> Database >  >> NoSQL >> MongoDB

La proprietà dell'oggetto MongoDB $esiste nell'array nidificato

Questa domanda funziona per me:

db.getCollection('testeur').find({ "attributes": {
        $exists: true, 
        $ne: [],
        $elemMatch: { "value": {$exists: false } } 
    }
})