Skip to main content
11 events
when toggle format what by license comment
S Sep 14 at 11:56 history suggested Mahyar Mottaghi Zadeh CC BY-SA 4.0
question updated.
Sep 12 at 8:35 comment added loloskc Yes, maybe you are right, I looked through the logger, the nested property filter, it does not change the SQL query compiled by dbContext. But if it is not difficult, can you give a link to a resource where this can be found out in detail, the hotchocolate documentation says little about this. Also, if the nested filter does not work with dbContext, but with a regular collection, how to filter it, which base handler to use
Sep 12 at 8:27 comment added loloskc That is, the nested property that I'm trying to get is filtered not at the dbContext level, but at the level of a regular collection?
Sep 12 at 8:24 comment added Panagiotis Kanavos What you wrote only works on LINQ queries. The expression has to be applied to the LINQ query / DbContext, which happens in the query resolver.
Sep 12 at 8:24 comment added loloskc I registered this filter through the convention and the provider handler at hot chocolate
Sep 12 at 8:22 comment added loloskc This filter is used for nested object properties. class My type{ string id {get;set;} [UseFiltiring("MyFilter")] string IEnumerable<MyNestedType> fields {get;set;} }
Sep 12 at 8:21 review Suggested edits
S Sep 14 at 11:56
Sep 12 at 8:19 comment added Panagiotis Kanavos it is not processed in any way did you register this anywhere? Or in the correct place? This shows a FilterInputType but TestKindFilterHandler works only with EF Core, or at least a source that uses LINQ.
Sep 12 at 8:15 comment added Panagiotis Kanavos create my own filter for a specific type why? This is an overcomplicated way of adding a .Where() to a LINQ query. And even if there's some justification for this, why use reflection instead of writing the Where query?
S Sep 12 at 8:02 review First questions
Sep 12 at 8:22
S Sep 12 at 8:02 history asked loloskc CC BY-SA 4.0 created from wizard