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

OData IQueryable Filters don't translate to MongoDB

    XMLWordPrintableJSON

Details

    • Icon: New Feature New Feature
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • 2.0
    • Linq
    • None

    Description

      ODataQueryOptions.Filter uses Odata filters. These do not translate through to MongoDB syntax. This prevents MongoDB from being the backing store for an OData endpoint without plenty of extra work.

      Ex: StartsWith is enabled through a regular Queryable/Where Expression has call syntax Syntax ".Call $e.Name.StartsWith(\"X\")". From the OData query, the RawFilter bceomes "startswith(Name,'MPMD')" The MongoDB Driver doesn't understand that format.

      More examples of queries which don't translate: http://www.odata.org/documentation/odata-version-2-0/uri-conventions/

      Attachments

        Activity

          People

            Unassigned Unassigned
            thechopkins Calvin Hopkins
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: