Answers for "mongodb delete document where field exists"

0

mongodb delete document where field exists

db.users.remove({
    "$or": [
        { "firstName": { "$exists": false } },
        { "lastName": { "$exists": false } }
    ]
})
Posted by: Guest on November-04-2020

Code answers related to "mongodb delete document where field exists"

Browse Popular Code Answers by Language