Database

[{"token":"1","apiKey":"1","documents":[{"filename":"1","id":"id here2","fileDownloaded":false},{"filename":"2","id":"2","fileDownloaded":false}]}]

Query

db.collection.update({"documents.id":"id here2"},{"$set":{"documents.$.fileDownloaded":true}})

Result