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

Parse regex ejson to valid query

    • Type: Icon: Task Task
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • No version
    • Affects Version/s: None
    • Component/s: GAI, Query Bar
    • None
    • 3
    • 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 Unassigned
            Reporter:
            rhys.howell@mongodb.com Rhys Howell
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: