Uploaded image for project: 'Compass '
  1. Compass
  2. COMPASS-2987

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

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Works as Designed
    • Icon: Minor - P4 Minor - P4
    • None
    • 1.14.6
    • Aggregation pipeline
    • None
    • Compass 1.14.6 MacOS, MongoDB 4.0 Ubuntu

    Description

      Using of $options for $regex in aggregations $match stage like - 

       

      { name: { $regex: /^PA/, $options: 'i' }}
      

      indicate an error:

       

      Expected "[" or AggregationStage but "{" found. 
      

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            fa@pulsit.net Filipp Akinfiev
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: