steevej
(Steeve Juneau)
4
You are right. Thanks for remembering me. I must have been fooled with
without testing it myself. But after I did, it looks like $options is optional. The following does not generate any error with mongosh within Compass 1.43.4.
mongosh> d = db.c.findOne({error: {$regex: "Contains invalid characters"}} )
< null