Skip to content

Commit ed9f54f

Browse files
committed
Fixed GetPagingArguments()
1 parent 42b6da3 commit ed9f54f

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/HotChocolate/Pagination/src/Pagination.Batching/Extensions/HotChocolatePaginationBatchingDataLoaderFetchContext.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ public static class HotChocolatePaginationBatchingDataLoaderFetchContext
2222
/// </returns>
2323
public static PagingArguments GetPagingArguments<TValue>(
2424
this DataLoaderFetchContext<TValue> context)
25-
=> context.GetRequiredState<PagingArguments>();
25+
=> context.GetRequiredState<PagingArguments>(PagingStateKeys.PagingArgs);
2626
}

src/HotChocolate/Pagination/test/Pagination.EntityFramework.Tests/PagingHelperIntegrationTests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1294,7 +1294,6 @@ public static async Task<Connection<Product>> GetProducts(
12941294
[Parent] Brand brand,
12951295
ProductsByBrandDataLoader dataLoader,
12961296
PagingArguments arguments,
1297-
IResolverContext context,
12981297
CancellationToken cancellationToken)
12991298
=> await dataLoader
13001299
.With(arguments)

0 commit comments

Comments
 (0)