nested queries in mongodb how to get a nested value code example Example: mongo query nested value db.messages.find( { 'headers.From': "[email protected]" } )