I really wanted to see this feature when using the extension and I could see it was requested a while ago in #449. While running update through runCommand is an option, it's harder to discern exactly what is happening.
This change adds mongodb:updateMany as a change type which takes a filter and update.
Hey!
I really wanted to see this feature when using the extension and I could see it was requested a while ago in #449. While running
update
throughrunCommand
is an option, it's harder to discern exactly what is happening.This change adds
mongodb:updateMany
as a change type which takes afilter
andupdate
.For example,
Can now be expressed as
Tests for both
UpdateManyChange
and the existingUpdateManyStatement
are included.