I'm generating dynamic expression trees to query MongoDB and I cannot find a way to compare strings using the less than and greater than operators.
I found
this discussion on Stackoverflow and it appears String.CompareTo is used in other LINQ providers but doesn't work with MongoDB:
Expression<<Func<string, bool>> filter = str => str.CompareTo("abc") > 0;