How to update array form schema #2?

image

upper image, my collection data.

I want to update “infos”.

const updatequery = [{
uid = 4, count = 12, }, {uid = 3, count = 100}];

Actually, I can change it by calling updateOne three times. But I don’t want to.

how to update array?

let me help me.

Please read Formatting code and log snippets in posts and post sample documents in textual format so that we can cut-n-paste into our systems for experimentation.

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