Skip to content

Version 7.0.2

Compare
Choose a tag to compare
@notheotherben notheotherben released this 07 Nov 19:15
· 123 commits to main since this release
v7.0.2
29ee5e9

This patch fixes the return value of the Model.update() function when { multi: false } is provided, specifically that non-error operations which didn't update any documents would previously return a 1. This has been addressed such that it will return 1 when the document is updated and 0 when it is not (no properties changed or no documents were matched).