I am sending the following query to the jongo MongoCollection.aggregrate(query, parameterList)
my query is
{ $match: {type: #}},
{ $unwind: '$yyy'},
{ $match: {'yyy': {$regex: #}}},
{$group:{
_id: "$_id",
type:{$first:"$type"},
yyy:{$addToSet:"$yyy"}
}}
I want to values in the parameterList to be substituted in the query, but it only replace the first value (As per the code in BsonQueryFactory class isTokenValue() is true for #, the paameter position is always resolves to 0 i.e the first element in the paramerterList) not sure when it goes to the case of isTokenValue resolve to false and gets the next position in the parameterList array. Any pointers are greatly appreciated. I am using Jongo 1.3.0 and mongo 3.0.5