Allow FindDefinition to call .Find and append as an AND

XMLWordPrintableJSON

    • Type: New Feature
    • Resolution: Won't Do
    • Priority: Major - P3
    • None
    • Affects Version/s: 2.2.3
    • Component/s: API, Read Operations
    • None
    • None
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?
    • None
    • None
    • None
    • None
    • None
    • None

      We have a scenario in which we are currently using a Queryable version of the collection as an override to another method, which "pre-filters" a search.

      Given the performance gains of Builders vs Linq, We're attempting to migrate away from Linq / Queryable on calls which are made with some frequency.

      We'd love to do the same equivilent with a FilterDefinition

      class BaseClass<TRoot>

      { ... public IQueryable<TRoot> Queryable => Collection.AsQueryable(); }

      class SomeRepository : BaseClass<SomeType>

      { public override IQueryable<SomeType> Queryable => base.Queryable.Where(st => st.Feature.In(listOfAllowedFeatures); }

            Assignee:
            Unassigned
            Reporter:
            Chad Kreimendahl
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: