Parse regex ejson to valid query

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Won't Fix
    • Priority: Major - P3
    • No version
    • Affects Version/s: None
    • Component/s: GAI, Query Bar
    • None
    • Not Needed

      Currently when the ai response contains a $regex it does not parse the ejson into a valid query.
      {"title":{"$options":"i","$regex":"test"}}
      Becomes
      {"title":{"options":"i","pattern":"test"}}

      This is also likely what causes query history items with regex not to work properly (there's a ticket for that https://jira.mongodb.org/browse/COMPASS-7008)

              Assignee:
              Unassigned
              Reporter:
              Rhys Howell
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: