Aggregations :: $match :: $regex , $options - can't be setted

XMLWordPrintableJSON

    • 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. 
      

       

            Assignee:
            Unassigned
            Reporter:
            Filipp Akinfiev
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: