for aggregate, $cond can be used to form an if-statement. I'm wonder if there's a similar function for .find()
When I tried using $cond in find(), I get
"unknown top level operator: $cond"
I'm trying to do the following (in pseudo code):
if condition is True:
set filter for find to thing_1
else:
set filter for find to thing_2