-
-
Notifications
You must be signed in to change notification settings - Fork 782
Ignoring operation in the FilterInputType does not work #7096
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Did you register the filter type? |
Ah, I see ... what are you trying to do? |
Standard registration public class MyTypeFilterType : FilterInputType<MyType>
{
protected override void Configure(IFilterInputTypeDescriptor<MyType> descriptor)
{
descriptor.Field(x => x.MyProperty1).Ignore(); // working
descriptor.Field(x => x.MyProperty2).Description("description 2"); // working
descriptor.Ignore(DefaultFilterOperations.Equals); // not working
descriptor.Operation(DefaultFilterOperations.Equals).Type<StringType>().Ignore(); // not working
descriptor.Operation(DefaultFilterOperations.Equals).Type<StringOperationFilterInputType>().Ignore(); // not working
}
}
``` ` |
I would like it to be impossible to use Operation Equals for all string properties in my object. |
Related: #5406. |
Please add a link to a minimal reproduction of this issue. |
Closing this issue as there is no repro |
Product
Hot Chocolate
Version
13.9.1
Link to minimal reproduction
tbd
Steps to reproduce
What is expected?
I would like to be able to ignore operations in the filter definition.
What is actually happening?
Operations are not ignored.
Relevant log output
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: