Details
-
Bug
-
Resolution: Done
-
Major - P3
-
3.1.9, 3.2.0-rc2
-
None
-
Fully Compatible
-
ALL
-
Description
A 'where' query that worked with 3.0.6 does not work with 3.1.9 and 3.2.0-rc2.
> db.datetest.find({"$where" : "(this.beginDate == null || this.beginDate > new Date()) && (this.endDate == null || this.endDate > new Date())"})
|
Error: error: {
|
"waitedMS" : NumberLong(0),
|
"ok" : 0,
|
"errmsg" : "SyntaxError: expected expression, got keyword 'return' @:1:24\n",
|
"code" : 139
|
}
|