Zaid-Ajaj / LiteDB.FSharp

Advanced F# Support for LiteDB, an embedded NoSql database for .NET with type-safe query expression through F# quotations
MIT License
181 stars 20 forks source link

String.StartsWith not supported in quotation queries #64

Open pedersorensen opened 3 years ago

pedersorensen commented 3 years ago

LiteDB has a Query.StartsWith method that would make sense to use when writing quotation queries like this:

  collection.Find(Query.createQueryFromExpr <@ fun t -> t.SomeStringProperty.StartsWith(someString) @>)

The query above currently just throws an exception.