Let's say we have a collection with documents like this:
{
_id : "some id",
items: [
{item: "item A", count: 5},
{item: "item B", count: 3},
{item: "item C", count: 9}
]
}
How can I increment the value by 1 of the third (or any other index value) element in items array?
And I want to reference not by matching value like in this question, but by index.