-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: 3.1.9, 3.2.0-rc2
-
Component/s: JavaScript, Querying
-
None
-
Fully Compatible
-
ALL
-
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 }