Is there ternary operator in MongoDB?

前端 未结 0 790
忘掉有多难
忘掉有多难 2020-12-29 06:48

In C# we can write this thing (just for sample):

query.Where(p=>p.Age>=20? p.Salary>1000: p.Mark>50);

How to translate this thing

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