-
Type: New Feature
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: 2.2.3
-
Component/s: API, Read Operations
-
Labels: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); }