How do I use find () in mongodb with a conditional to use one field or another?

后端 未结 0 1398
野趣味
野趣味 2021-01-13 17:51

I have to return documents that are between two dateTime values ​​or if the dateTime field does not exist, use the createdAt field. I\'m using this query:

{ d         


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