"Body.Data.Meta.Item.Value",
But as a pipeline the following fails:
$match: {
"Body.Data.Meta.Item.Value": "$$TransID"
}
What could be the problem?
Why did you add two dollar signs? Typically it's just one dollar sign. Is one dollar sign also not working? In which case you'll have to search for some constant value or set of values.
$ is referred to the root document fields where as $$ referred to the variable names.
did you solve the issue ?
Nope, I ended up using the first option then filtering the results
Обсуждают сегодня