You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are 6 possibilities while generating filters for collections. 2 of them are already covered by AutoFilterer currently. Those possibilities depend on Property types of Filter and Source Objects. When a Filter object property is a collection, the query must be generated with Contains method. But there is more a couple of possibilities:
p => []
[] => {}
[p] => [p](Contains method inside Any/All method. For MongoDb models)
[{}]=> [{}]( Built Expression ({} => {}) inside All/Any methodto understand how to generate query.)
p property [] array [p] a property inside array [{}] entire object inside array
The text was updated successfully, but these errors were encountered:
Any & Contains are working well currently. The topic is about running all nested like All(Any(x => x)) or even much deeper All(Any(All(Contains()))). It will go deeper according to the nested filter objects. I'll check your repository, and if it does it exactly and compatible, I can refer to your project in the documentation for this purpose instead re-inventing the wheel
See the origin of this issue:
#35
Possible Scenarios
There are 6 possibilities while generating filters for collections. 2 of them are already covered by AutoFilterer currently. Those possibilities depend on Property types of Filter and Source Objects. When a Filter object property is a collection, the query must be generated with Contains method. But there is more a couple of possibilities:
p
=>[]
[]
=>{}
[p]
=>[p]
(Contains
method insideAny/All
method. For MongoDb models)[{}]
=>[{}]
( Built Expression ({} => {}
) insideAll/Any
methodto understand how to generate query.)p
property[]
array[p]
a property inside array[{}]
entire object inside arrayThe text was updated successfully, but these errors were encountered: