How to filter collection in Mongo R driver?
<p>I'm trying to convert a mongo collection to an R data frame. I'm using rmongodb package to do the same. I'm want to filter out the collection using the field <code>constraint</code> and only include collections where <code>constraint != 'constraint 1'</code>. How do I do that? 
Below is an example syntax of my query</p>

<pre><code>query &lt;- list(
mongo.bson.from.JSON('
{
"$project" : {
"_id" :0,
"app_id" : "$_id",
"constraint" : "$constraint",
"Field1" : "$field",
#
#
#
}
}
</code></pre>