# You can use the string-based syntax, since the expression doesn't offer any advantages with dynamic anyway: var cursor = db.GetCollection("foo") .Find(Builders.Filter.Eq("_id", someId));