steevej
(Steeve Juneau)
2
The query
seems to work here as it does not generate an error in my case:
mongosh> db.c.findOne( {$and: [
{timestamp: {$gt: {$date: "2024-07-13T11:58:43.614+00:00"}}},
{error: {$regex: "Contains invalid characters"}}
]} )
< null
Null document is good as I do not have any document that matches.
May be you simply had a typing error when it failed.