I'm using this query :
db.getCollection('fuelings').aggregate([
{
$match: {
"dateCreated" : {$gte: "2020-08-12T00:00:00.000Z" ,$lt: "2020-08-22T12:00:00.000Z"}
}
}] )
Which does yields results as you can see :
But now I want to add another filter in $match , which filters all "status" ( from line #9) is a digit . So I've used regex :
So I've added this :
$match: { "status":/\d/ ,....
But now it yields 0 results :
Question:
Why is it happening? \d is a digit regex. why it doesn't yield results ?

