MongoDB.Driver.MongoWriteException

A write operation resulted in an error.
The positional operator did not find the match needed from the query.”

在使用UpdateOne时,如果要更新的filter数据里有多条数据时,就会报这个错误,可以通过使用_id过滤等方法

posted @ 2021-01-19 15:14  zhaogaojian  阅读(657)  评论(0编辑  收藏  举报