In MongoDB, how do I update a field with the value of an element inside an array? In MongoDB, how do I update a field with the value of an element inside an array? json json