Details
-
Task
-
Resolution: Won't Fix
-
Major - P3
-
None
-
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
Issue Links
- depends on
-
COMPASS-7100 Update the ai prompt to return MQL strings instead of EJSON
-
- Closed
-
- duplicates
-
COMPASS-7008 `$regex` shows as `pattern` in Queries>Recent
-
- Open
-