Query mongodb collection as dynamic

Code Example - Query mongodb collection as dynamic

                
                        # You can use the string-based syntax, since the expression doesn't offer any advantages with dynamic anyway:

var cursor = db.GetCollection<dynamic>("foo")
               .Find(Builders<dynamic>.Filter.Eq("_id", someId));