This seems so basic that I\'m sure I\'ve just overlooked a class or a method somewhere, but for the life of me, I can\'t find it.
I\'ve got a json string like so:
To add to Shaun McCarthy's answer there's a slightly cleaner way to achieve the exact same goal using BsonDocument.Parse together with QueryDocument:
BsonDocument.Parse
QueryDocument
var json = "{ SendId: 4, 'Events.Code' : { $all : [2], $nin : [3] } }"; collection.Find(new QueryDocument(BsonDocument.Parse(json)));