MongoDB - The path must exist in the document

后端 未结 0 790
慢半拍i
慢半拍i 2021-02-14 07:31

I have the following query:

{ \'$pull\': { \'projects.$[].users\': { user_id: user_id } } }

That fails with an error if there\'s no \'projects\'

相关标签:
回答
  • 消灭零回复
提交回复
热议问题