Details
-
Question
-
Resolution: Done
-
Major - P3
-
None
-
None
-
None
Description
i run an aggregation query in ireport and works fine, but when i run it on server returns null on fields. If i do this query with the equivalent with findQuery works fine and returns data. What's wrong with this?
{'collectionName' : 'tsin_integrantes',
|
|
|
'runCommand':{
|
aggregate:'tsin_integrantes',
|
|
|
pipeline:[
|
|
|
{$match : {'idPerson':'$P!{idPerson}'}}
|
|
|
]
|
}
|
}
|
}
|
but a simple query like this works fine:
{'collectionName' : 'tsin_integrantes',
|
|
|
'findQuery' : {
|
'idPerson': $P{idPerson}
|
}
|
}
|
|
|
|
|
}
|