i am using official mongodb c# driver. i want to query mongodb simliar to SQL Like something like db.users.find({name:/Joe/} in c# driver
db.users.find({name:/Joe/}
c# query will looks like:
Query.Matches("name", BsonRegularExpression.Create(new Regex("Joe")));
As per @RoberStam suggestion, there is more simple way to do this:
Query.Matches("name", "Joe")