syntax.HotChocolate.Data.Filters.Extensions 1.0.4
syntax.HotChocolate.Data.Filters.Extensions
Build and distribute as NuGet package
cd C:\home\projects\syntax\HotChocolate\HotChocolate.Data.Filters.Extensions; `
$VERSION = "$([regex]::match(((Get-Content "./HotChocolate.Data.Filters.Extensions.csproj") | Select-String -Pattern "<AssemblyVersion>\d+\.\d+\.\d+</AssemblyVersion>"), "(\d+\.\d+\.)(\d+)").Groups[1].Value)$(([int][regex]::match(((Get-Content "./HotChocolate.Data.Filters.Extensions.csproj") | Select-String -Pattern "\d+\.\d+\.\d+"), "(\d+\.\d+\.)(\d+)").Groups[2].Value) + 1)"; `
(Get-Content "./HotChocolate.Data.Filters.Extensions.csproj") -replace '(<AssemblyVersion>)[\d\.]+(</AssemblyVersion>)', "`${1}$VERSION`${2}" | Out-File "./HotChocolate.Data.Filters.Extensions.csproj"; `
"Version: $VERSION"; `
$API_KEY = [regex]::match((Get-Content ./.nuget.env), 'ApiKey="([^"]+)"').Groups[1].Value; `
"API key: $API_KEY"; `
dotnet build --configuration Release; `
dotnet pack --configuration Release --output .packages -p:PackageVersion="$VERSION"; `
dotnet nuget push ".\.packages\syntax.HotChocolate.Data.Filters.Extensions.$VERSION.nupkg" -s "https://nuget.syntax-neue-medien.de/v3/index.json" -k "$API_KEY"; `
dotnet nuget push ".\.packages\syntax.HotChocolate.Data.Filters.Extensions.$VERSION.snupkg" -s "https://nuget.syntax-neue-medien.de/v3/index.json" -k "$API_KEY";
Install in different project
dotnet add package syntax.HotChocolate.Data.Filters.Extensions -s "https://nuget.syntax-neue-medien.de/v3/index.json";
Usage
Register in your Startup.cs
.AddGraphQLServer()
// ...
.AddExtendedFiltering() // 👈 Instead of .AddFiltering()
// ...
GraphQL
Now you can write GraphQL like this:
query GetCharactersWithPaging1(
$take: Int
$skip: Int
$order: [ICharacterSortInput!]
) {
charactersWithPagingFilteringAndSorting(
take: $take
skip: $skip
where: { name: { containsIgnoreCase: "c" } } # 👈 instead of contains
order: $order
) {
items {
id
name
height
appearsIn
}
totalCount
pageInfo {
hasNextPage
hasPreviousPage
}
}
}
No packages depend on syntax.HotChocolate.Data.Filters.Extensions.
.NET 8.0
- HotChocolate.Data (>= 15.1.11)
| Version | Downloads | Last updated |
|---|---|---|
| 1.0.4 | 11 | 11/21/2025 |