Update a document with fields containing periods

Hi here !

I would like to update a document with fields containing periods

`{_id: 1, a: {b.c: {d:42}}}``

How to update the value of d from 42 to 43?

Thank you for your help!

Start by looking at $setField.

In the future, I would try to avoid fields with dots. I don’t even know if you could have an index on b.c within a:.