mongodb/mongo-csharp-driver — pull request #163 by shaunmccarthy (2013-06-20 19:25:21+00:00)
Title: Adding in the ability to easily create queries in the format used by MongoDBs console

The question "How do I pass json style queries in to the C# driver" pops up on Stackoverflow quite often. This seems like a reasonably elegant way to add it (perhaps we could look into creating a specific call, to improve error handling for when people get the query wrong though)

e.g.
http://stackoverflow.com/questions/17220959/c-sharp-mongo-queries-with-json-strings/17221345
http://stackoverflow.com/questions/6120629/can-i-do-a-text-query-with-the-mongodb-c-sharp-driver

Usage:
collection.Find(new JSQueryDocument("{ SendId: 4, 'Events.Code' : { $all : [2], $nin : [3] } }"));