Skip to content

Commit

Permalink
Cleanup filtering docs (#2623)
Browse files Browse the repository at this point in the history
  • Loading branch information
PascalSenn committed Nov 20, 2020
1 parent 71e3ef6 commit 4d89127
Showing 1 changed file with 1 addition and 22 deletions.
23 changes: 1 addition & 22 deletions website/src/docs/hotchocolate/fetching-data/filtering.md
Expand Up @@ -506,27 +506,6 @@ input UserFilterInput {
}
```


# Custom FilterInputType

```sdl
input UserFilter {
name: String
name_contains: String
name_ends_with: String
name_in: [String]
name_not: String
name_not_contains: String
name_not_ends_with: String
name_not_in: [String]
name_not_starts_with: String
name_starts_with: String
AND: [UserFilter!]
OR: [UserFilter!]
}
```


# Filter Conventions

If you want to change the behavior filtering globally, you want to create a convention for your filters. The filter convention comes with a fluent interface that is close to a type descriptor.
Expand Down Expand Up @@ -650,7 +629,7 @@ in ones.
You can use `Configure<TFilterType>()` to alter the configuration of a type.

```csharp
.Configure<StringOperationFilterInput>(
descriptor.Configure<StringOperationFilterInput>(
x => x.Operation(DefaultFilterOperations.Equals).Description("Equals"))
```

Expand Down

0 comments on commit 4d89127

Please sign in to comment.