Support of Inline Conditional-to-FilterDefinition

XMLWordPrintableJSON

    • Type: New Feature
    • Resolution: Duplicate
    • Priority: Major - P3
    • None
    • Affects Version/s: 2.0.1
    • Component/s: API, LINQ
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      As a developer I want to be able to use iniline conditional statement in lamda expressions that generate filter definitions.

      Example:
      var posts = await blogContext.Posts.Find(p => (tag != null) ? p.Tags.Contains(tag) : true).ToListAsync();

      currently in version 2.0.0.788 the above throws an error:
      Unsupported filter: IIF(False, Serialization(Tags).Contains(null), True).

              Assignee:
              Unassigned
              Reporter:
              Georgios Panagopoulos
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: