Skip to content

Commit 15345a7

Browse files
committed
Remove misleading docs for paginator type
1 parent b71a1d7 commit 15345a7

4 files changed

Lines changed: 6 additions & 12 deletions

File tree

docs/6/api-reference/directives.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1492,7 +1492,6 @@ directive @hasMany(
14921492

14931493
"""
14941494
Allows to resolve the relation as a paginated list.
1495-
Allowed values: `paginator`, `connection`.
14961495
"""
14971496
type: HasManyType
14981497

@@ -1584,7 +1583,6 @@ directive @hasManyThrough(
15841583

15851584
"""
15861585
Allows to resolve the relation as a paginated list.
1587-
Allowed values: `paginator`, `connection`.
15881586
"""
15891587
type: HasManyThroughType
15901588

@@ -2608,9 +2606,9 @@ It can be queried like this:
26082606

26092607
### Pagination type
26102608

2611-
The `type` of pagination defaults to `PAGINATOR`, but may also be set to
2612-
`SIMPLE` (see [Simple Pagination](#simple-pagination)) or a Relay compliant
2613-
`CONNECTION`.
2609+
The `type` of pagination defaults to `PAGINATOR`,
2610+
but may also be set to `SIMPLE` (see [Simple Pagination](#simple-pagination))
2611+
or a Relay compliant `CONNECTION`.
26142612

26152613
> Lighthouse does not support actual cursor-based pagination as of now, see https://github.com/nuwave/lighthouse/issues/311 for details.
26162614
> Under the hood, the "cursor" is decoded into a page offset.

docs/master/api-reference/directives.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1492,7 +1492,6 @@ directive @hasMany(
14921492

14931493
"""
14941494
Allows to resolve the relation as a paginated list.
1495-
Allowed values: `paginator`, `connection`.
14961495
"""
14971496
type: HasManyType
14981497

@@ -1584,7 +1583,6 @@ directive @hasManyThrough(
15841583

15851584
"""
15861585
Allows to resolve the relation as a paginated list.
1587-
Allowed values: `paginator`, `connection`.
15881586
"""
15891587
type: HasManyThroughType
15901588

@@ -2608,9 +2606,9 @@ It can be queried like this:
26082606

26092607
### Pagination type
26102608

2611-
The `type` of pagination defaults to `PAGINATOR`, but may also be set to
2612-
`SIMPLE` (see [Simple Pagination](#simple-pagination)) or a Relay compliant
2613-
`CONNECTION`.
2609+
The `type` of pagination defaults to `PAGINATOR`,
2610+
but may also be set to `SIMPLE` (see [Simple Pagination](#simple-pagination))
2611+
or a Relay compliant `CONNECTION`.
26142612

26152613
> Lighthouse does not support actual cursor-based pagination as of now, see https://github.com/nuwave/lighthouse/issues/311 for details.
26162614
> Under the hood, the "cursor" is decoded into a page offset.

src/Schema/Directives/HasManyDirective.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ public static function definition(): string
2626
2727
"""
2828
Allows to resolve the relation as a paginated list.
29-
Allowed values: `paginator`, `connection`.
3029
"""
3130
type: HasManyType
3231

src/Schema/Directives/HasManyThroughDirective.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ public static function definition(): string
2626
2727
"""
2828
Allows to resolve the relation as a paginated list.
29-
Allowed values: `paginator`, `connection`.
3029
"""
3130
type: HasManyThroughType
3231

0 commit comments

Comments
 (0)