Allow FilterDefinition OfType to allow for querying of inherited types with type safety in builder

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: 2.2.3
    • Component/s: Read Operations
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The ability to use builders for typesafety with expressions is excellent, especially given our abundant use of the BsonClassMap to map field names, and occasionally change them.

      We would like the ability to do the following:

      Builders<RootType>.Filter.OfType<SubType>().ElemMatch(c => c.SomeThing, Builders<SubType>.Filter.Eq(c => c.SubTypeBoolean, true))

            Assignee:
            Robert Stam
            Reporter:
            Chad Kreimendahl
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: