Skip to content

Case insensitive custom filter operation #9700

@martinRocks

Description

@martinRocks

Product

Hot Chocolate

Version

16.0.2

Link to minimal reproduction

in dev right now

Steps to reproduce

I love this project, however, using HotChocolate.AspNetCore version 16.0.2, the documentation located here (https://chillicream.com/docs/hotchocolate/v16/fetching-data/integrations/extending-filtering/) does not compile. I have changed the code to be like below, but it just doesn't work. Help.

What is expected?

The sample code on the web page should work.

What is actually happening?

Right now, the sample code does not compile.

Image

Relevant log output

Additional context

No response

This does NOT work, but it complies.

    protected override void Configure(IFilterConventionDescriptor descriptor)
    {
        descriptor.AddDefaults();
        descriptor.Provider(
            new QueryableFilterProvider(
                x => x
                    .AddDefaultFieldHandlers()
                    .AddFieldHandler(y => new QueryableStringInvariantEqualsHandler(y.InputParser))));
    }
}`

Metadata

Metadata

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions