Skip to content

Commit 028baca

Browse files
authored
feat: add YAML for disabling pagination for a specific resource (#1672)
1 parent 6ff8580 commit 028baca

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

core/pagination.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ api_platform:
7272
7373
It can also be disabled for a specific resource:
7474
75+
[codeSelector]
76+
7577
```php
7678
<?php
7779
// api/src/Entity/Book.php
@@ -86,6 +88,13 @@ class Book
8688
}
8789
```
8890

91+
```yaml
92+
# api/config/api_platform/resources.yaml
93+
App\Entity\Book:
94+
paginationEnabled: false
95+
```
96+
[/codeSelector]
97+
8998
### Disabling the Pagination Client-side
9099
91100
#### Disabling the Pagination Client-side Globally

0 commit comments

Comments
 (0)