In MongoDB, how do I use $set to update a nested value with a numerical key?
<p>Example:</p>

<pre><code>db.parts.update({ }, { $set: { "partNumbers.342": "Wall Box" } })
</code></pre>

<p>This doesn't seem to work because partNumbers is treated as an array when really it's an object.</p>