I have an aggregation query given below which I need to pass in as a json string to java app to execute it. Is it possible to do that -
{$unwind:$results},{$match:{result.studentid:11}}
I tried using BasicDBObject.parse but it is returning me the unwinded or flattened results and the result is not segregating on the basis of match.
Is there any other way to do it.