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 |
---|---|---|---|
Execution plan and choosing of index | 0 | 219 | May 2024 |
Filtering documents between older dates give increased results | 1 | 258 | Jul 2024 |
Scaling out changestream | 0 | 189 | Aug 2024 |
$lookup accross 2 collections for ID exists takes too much time | 0 | 24 | Nov 2024 |
Slow query performance when working with large $in arrays | 0 | 39 | Jan 21 |