Skip to content

Commit 2374492

Browse files
Biarityjaredcnance
authored andcommitted
Update Pagination.md
1 parent f6a84eb commit 2374492

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docs/Pagination.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,11 @@ The following query would set the page size to 10 and get page 2.
1313

1414
If you would like pagination implemented by default, you can specify the page size
1515
when setting up the services:
16+
17+
```C#
18+
public IServiceProvider ConfigureServices(IServiceCollection services) {
19+
services.AddJsonApi<AppDbContext>(
20+
opt => opt.DefaultPageSize = 10);
21+
// ...
22+
}
23+
```

0 commit comments

Comments
 (0)