-
Type: Task
-
Resolution: Won't Fix
-
Priority: Major - P3
-
Affects Version/s: None
-
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)
- 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
- Closed