Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-611

Support for Enumerable.Any in LINQ queries for StringSerializer like List<string> Properties

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • 2.1
    • 1.6.1
    • None
    • None
    • Major Change

    Description

      In OData Any Queries for IList<string> properties like ?$filter=Links/any(x: x eq '/movies/') don't work and it gives "Any is only support for items that serialize into documents. The current serializer is StringSerializer and must implement IBsonDocumentSerializer for participation in Any queries." error.

      That would be good to add support like these queries or x=>x.Links.Any(l=>l.StartsWith("/mov"))

      Attachments

        Activity

          People

            craig.wilson@mongodb.com Craig Wilson
            hyurtseven Huseyin Yurtseven
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: