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