Skip to content

Commit 7b97613

Browse files
committed
Added paging boundaries
1 parent 2faf9c9 commit 7b97613

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

code/complete/GraphQL/Startup.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
using HotChocolate.Resolvers;
1818
using HotChocolate.AspNetCore;
1919
using System.Diagnostics;
20+
using HotChocolate.Types.Pagination;
2021

2122
namespace ConferencePlanner.GraphQL
2223
{
@@ -71,7 +72,11 @@ public void ConfigureServices(IServiceCollection services)
7172
.AddDataLoader<SessionByIdDataLoader>()
7273
.AddDataLoader<SpeakerByIdDataLoader>()
7374
.AddDataLoader<TrackByIdDataLoader>()
74-
.ModifyRequestOptions(o => o.IncludeExceptionDetails = true)
75+
76+
.SetPagingOptions(new PagingOptions
77+
{
78+
RequirePagingBoundaries = true
79+
})
7580

7681
// we make sure that the db exists and prefill it with conference data.
7782
.EnsureDatabaseIsCreated()

0 commit comments

Comments
 (0)