How to update array in schema?


Upper Image, My Collection data.

I want to change info array data update.
But not all data in info array,
just data of uid : 5 wants to change (count, level, type).

How to update array value?


I try to update but only one change data in array.


The positional $ operator will update only the first matching element from an array,

You can use $[<identifier>] filtered positional operator to update multiple matching elements in an array,

Tanks, I solved too.


very complicated.

1 Like

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.