Replies: 1 comment 1 reply
-
Hi @ameckl,
I'll take a look at this maybe in future versions we could add Dictionary built-in support , it would be a cool additional feature 👌
You already have access to var gq = new GridifyQuery { Filter = "Name = John"};
var query = DS
.Where(ds => ds.Data["key"] == "value")
.ApplyFiltering(gq); or do you need to access the value and operator?
about this, I'm not sure what would be your expected GridifyQuery, maybe something like this: |
Beta Was this translation helpful? Give feedback.
-
Hello, I'm using MongoDb as database, where I have a couple of entities with sub-documents storing additional information, represented as
IDictionary<string, string>
.e.g.
Is it possible to achieve filtering based on the values of this Dictionary?
One solution would be to implement a custom operator, then cast the
value
to an IDictionary, but that seems like an overkill (and then I need to implement other custom operators forNotEquals, Contains
, etc).It would be great to have support on sub-documents, just like there is support for sub-collections. Maybe something like:
For reference, my current approach (using Sieve) looks like this:
Or maybe is it planned to support custom filter methods (like Sieve), where we have access to the
IQueryable
that is being filtered? (that's how we achieved search in our past projects)e.g.
Beta Was this translation helpful? Give feedback.
All reactions