摘要: A write operation resulted in an error. The positional operator did not find the match needed from the query.” 在使用UpdateOne时,如果要更新的filter数据里有多条数据时,就会报 阅读全文
posted @ 2021-01-19 15:14 zhaogaojian 阅读(697) 评论(0) 推荐(0)
摘要: 今天一个客户的应用一直无法发送通知,经过检查,发现是因为应用可见范围没有授权该部门,但是又授权了通讯录, 这个限制机制:假如授权了通讯录,但是应用可见范围没有某个部门的话,那么即便通过应用能看到这个部门,也不能发送。 阅读全文
posted @ 2021-01-19 14:24 zhaogaojian 阅读(588) 评论(0) 推荐(0)
摘要: 以Eq,ElemMatch为例,假如一个document中有a,b,clist三个字段,clist为一个array类型的document,现在想要查询a=11,b=22并且clist中的riqi为2020-10-2的数据写法 1、强类型写法 FilterDefinition<Test> filter 阅读全文
posted @ 2021-01-19 11:14 zhaogaojian 阅读(1670) 评论(0) 推荐(0)