Skip to content

Commit ac166fc

Browse files
committed
v6.31.1
1 parent 4b0c9c5 commit ac166fc

4 files changed

Lines changed: 15 additions & 6 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ You can find and compare releases at the [GitHub release page](https://github.co
99

1010
## Unreleased
1111

12+
## v6.31.1
13+
14+
### Fixed
15+
16+
- Fix `@limit` directive definition
17+
1218
## v6.31.0
1319

1420
### Added

docs/6/api-reference/directives.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1971,12 +1971,13 @@ directive @like(
19711971
19721972
```graphql
19731973
"""
1974-
Allow clients to specify the maximum number of results to return.
1974+
Allow clients to specify the maximum number of results to return when used on an argument,
1975+
or statically limits them when used on a field.
19751976

19761977
This directive does not influence the number of results the resolver queries internally,
19771978
but limits how much of it is returned to clients.
19781979
"""
1979-
directive @limit on ARGUMENT_DEFINITION
1980+
directive @limit on ARGUMENT_DEFINITION | FIELD_DEFINITION
19801981
```
19811982
19821983
Place this on any argument to a field that returns a list of results.

docs/master/api-reference/directives.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1971,12 +1971,13 @@ directive @like(
19711971
19721972
```graphql
19731973
"""
1974-
Allow clients to specify the maximum number of results to return.
1974+
Allow clients to specify the maximum number of results to return when used on an argument,
1975+
or statically limits them when used on a field.
19751976

19761977
This directive does not influence the number of results the resolver queries internally,
19771978
but limits how much of it is returned to clients.
19781979
"""
1979-
directive @limit on ARGUMENT_DEFINITION
1980+
directive @limit on ARGUMENT_DEFINITION | FIELD_DEFINITION
19801981
```
19811982
19821983
Place this on any argument to a field that returns a list of results.

src/Schema/Directives/LimitDirective.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,13 @@ public static function definition(): string
2424
{
2525
return /* @lang GraphQL */ <<<'GRAPHQL'
2626
"""
27-
Allow clients to specify the maximum number of results to return.
27+
Allow clients to specify the maximum number of results to return when used on an argument,
28+
or statically limits them when used on a field.
2829
2930
This directive does not influence the number of results the resolver queries internally,
3031
but limits how much of it is returned to clients.
3132
"""
32-
directive @limit on ARGUMENT_DEFINITION
33+
directive @limit on ARGUMENT_DEFINITION | FIELD_DEFINITION
3334
GRAPHQL;
3435
}
3536

0 commit comments

Comments
 (0)