rdunk
12/15/2021, 7:22 PMupdateMany to update multiple different records at once? For example I have an array [{ id: 1, name: 'Foo' }, { id: 2, name: 'Bar' }] that I want to change to [{ id: 1, name: 'FOO' }, { id: 2, name: 'BAR' }]. Or is updateMany only used to update records to all have the same given value?Maciek K
12/16/2021, 9:26 AMupdateMany . updateMany is for updating many records with the same data. For your use case you would need to loop through your array and use update in each iteration.rdunk
12/16/2021, 10:27 AM$transaction