-
Type:
Bug
-
Resolution: Works as Designed
-
Priority:
Minor - P4
-
None
-
Affects Version/s: 1.14.6
-
Component/s: Aggregation pipeline
-
None
-
Environment:Compass 1.14.6 MacOS, MongoDB 4.0 Ubuntu
-
None
-
None
Using of $options for $regex in aggregations $match stage like -
{ name: { $regex: /^PA/, $options: 'i' }}
indicate an error:
Expected "[" or AggregationStage but "{" found.