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

Parse regex ejson to valid query

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Won't Fix
    • Icon: Major - P3 Major - P3
    • No version
    • None
    • GAI, Query Bar
    • None
    • 3
    • Not Needed

    Description

      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)

      Attachments

        Activity

          People

            Unassigned Unassigned
            rhys.howell@mongodb.com Rhys Howell
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: