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!
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:.
Topic | Replies | Views | Activity |
---|---|---|---|
MongoDB Change Event Filtering | 0 | 266 | Jul 2024 |
Vote for Feedback: $sort should accept 0 meaning “don’t sort” | 0 | 206 | Jul 2024 |
How to perform $lookup on items in arrays stored in multiple values of key-value pairs of a dictionary? | 1 | 240 | Aug 2024 |
Rebuilding the indices | 1 | 358 | Sep 2024 |
Timeseries data structure | 4 | 49 | Oct 2024 |