Hello,
I tried to use $regex in $match stage but it does not seem to work. E.g.:
db.collection.aggregate([
{ "$match": { "title": { "$regex": ".*(AB[0-9]{4,6}).*", "$options": "si" } } }
])
I am getting the error in Grafana:
status:500
statusText:"Internal Server Error"
data:Object
message:"Unexpected end of JSON input"
message:"Unexpected end of JSON input"
Is there any way to make it work?
Thank you in advance.